How to create submit button using Struts tag?
Can any one tell me how to create submit button in Struts?开发者_如何学运维
Using the s:submit
tag is all you really need to do.
For example, let's say you have a form that will submit a simple textfield value into a variable in your action called "name"
:
<s:form action="MyAction">
<s:textfield name="name" label="Name" required="true"/>
<s:submit value="Click Here to Submit"/>
</s:form>
精彩评论