File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts2 <s:form> includes empty <td>

 
Saravanan Vijayappan
Ranch Hand
Posts: 47
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Empty TD is included in struts2 form. Please have a look at the below my JSP code snippet below.




Generated html code in browser is below for the above code




Why this line of empty <td> is generated ? - <td class="tdLabel"></td>

I really could not find out a way to get rid of this <td> ? Could any one please help me?. Thanks
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Because you have no label for your radio button.

The default theme, "xhtml", puts form elements in tables. You may want to read some of the S2 documentation regarding themes and templates.
 
Saravanan Vijayappan
Ranch Hand
Posts: 47
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you., that helped me, I am going to use theme="simple" and manually going to create <table>
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic