tags:

views:

300

answers:

1

pls any one tell "how to create submit button" in struts i am new to struts...pls give detail answer

A: 

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>

Hope this helps!

Johnny Wey
thanks for your help..it works
Niru...
You should click the "answered" link :)
Johnny Wey