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.xmlthe action is mapped via theactiontagthe
submitbuttons should includemethodattribute to call corresponding methods of the actionNote: To map a
methodattribute you should have DMI turned on.