This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills and have John Sonmez on-line!
See this thread for details.
The moose likes Struts and the fly likes How can i insert Reset and Submit buttons in same row in struts2? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How can i insert Reset and Submit buttons in same row in struts2?" Watch "How can i insert Reset and Submit buttons in same row in struts2?" New topic
Author

How can i insert Reset and Submit buttons in same row in struts2?

Udesh Perera
Greenhorn

Joined: May 18, 2010
Posts: 3
Hi,
I want to insert Submit and Reset button in same row in struts2,I'm using <s:form> tag to my form.i want to add Reset and Submit button in same row.As i know struts tags generate html table.can some one provide me the way to do this,if some one can provide Example regarding this it will very helpful to me.

thanxxxx!!!
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

See the following:

http://struts.apache.org/2.x/docs/themes-and-templates.html
http://struts.apache.org/2.x/docs/selecting-themes.html

Udesh Perera
Greenhorn

Joined: May 18, 2010
Posts: 3
thanxx for the link!!!
I think i solver the problem without creating new template
<s:form action="add" method="post" theme="xhtml">
<s:textfield name="uname" label="User Name"/>
<s:password name="pwrd" label="Password"/>
<tr><td>
<s:reset value="Reset" theme="simple"/>
</td>
<td>
<:submit name="submit" theme="simple"/>
</td>
</tr>

any sugestion or problems pleas let me know!!
thankxx!!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How can i insert Reset and Submit buttons in same row in struts2?