Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts2: I want to use <s:textfield> inside <s:checkbox>, is it possible?

 
Paul Michael Serrano
Ranch Hand
Posts: 59
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I do have a snippet of code for my jsp....


I tried to change the line enclosed with <!-- need help for this line-->
<s:checkbox name="dueDate" >Test due <s:textfield name="repTimeDueDays" size="3"/> days prior to due date.</s:checkbox>


but the page is distorted, it seems that <s:checkbox> creates a new <tr></tr> within my jsp page.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The default "xhtml" theme uses table rows. Use the simple theme if you want to have complete control over your layout--but be aware you'll lose some functionality like showing error messages (which you can do manually).

That said, there's no reason to nest anything here.
 
Paul Michael Serrano
Ranch Hand
Posts: 59
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks David it did work...
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic