Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

STruts 2 radio

 
Abhilash Chander
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I'm using struts 2 tag to display my 5 difrrent group of radio buttons. Now as each list has values of diffrent lenghts the outcome is very irregular. Is there a way to apply style to the struts radio buttons so that they appear unifom. Here is the code to make it more simple what I'm trying to achieve.


With this code the radio buttons of each group are not aligned. What I want is, the first radio buttons of all groups should align vertically. Second radio buttons of all groups should align vertically and so on. I have attached a screenshot of the output I'm getting right now. Any advice how to align them. Thanks
radioScreenshot.JPG
[Thumbnail for radioScreenshot.JPG]
Screenshot of the output
 
Meet Gaurav
Ranch Hand
Posts: 492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried with html table with border=0 ?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at the rendered output: that's what's provided by the default Struts 2 theme.

If you need output to appear in some other way, you can try using CSS (perhaps setting a width), or you'll need to modify a theme.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic