I have a form contains three buttons print
/export
/save
.
<s:form action="/userAction">
<s:submit type="image" value="%{'print'}" src="/print.png" />
<s:submit type="image" value="%{'export'}" src="/export.png" />
<s:submit type="image" value="%{'save'}" src="/save.png" />
</s:form>
How can I map this in struts.xml
?
In the
struts.xml
the action is mapped via theaction
tagthe
submit
buttons should includemethod
attribute to call corresponding methods of the actionNote: To map a
method
attribute you should have DMI turned on.