开发者

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜