开发者

How to create submit button using Struts tag?

开发者 https://www.devze.com 2022-12-18 05:11 出处:网络
Can any one tell me how to create submit button in Struts?开发者_如何学运维Using the s:submit tag is all you really need to do.

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>
0

精彩评论

暂无评论...
验证码 换一张
取 消