This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Very simple question in struts2

 
Arun Kumar
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<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
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Arun Kumar
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perfect!

Thanks Merrill.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic