This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes Very simple question in struts2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Very simple question in struts2" Watch "Very simple question in struts2" New topic
Author

Very simple question in struts2

Arun Kumar
Ranch Hand

Joined: May 22, 2006
Posts: 62
<s:textfield name="firstName" />

throws in something like

<tr>
<td class="tdLabel"><label ... > </label></td>
<td> <input type="text" name="firstName" .... /></td>
</tr>


How do i get rid of the <tr> </tr> envelop. As I have to show the text fields in the grid layout.

Thanking in advance.
[ June 04, 2008: Message edited by: Bear Bibeault ]
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Just specify theme="simple" either in the <s:form> tag if you want all elements in the form rendered without these tags, or at the <s:textfield> level if you want the theme to be applied only to this element.


Merrill
Consultant, Sima Solutions
Arun Kumar
Ranch Hand

Joined: May 22, 2006
Posts: 62
Perfect!

Thanks Merrill.
 
jQuery in Action, 2nd edition
 
subject: Very simple question in struts2
 
Similar Threads
jQuery select option
how to get multple text fields values in jsp
Struts 2 JCaptchaforStruts 2 issue
Prepoulating form fields
h:form and mouseover