Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Struts 2 - Align input buttons  RSS feed

 
Charles Z Martin
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am encountering a problem I am pretty sure a few people have dealt with before.

I am trying to align submit buttons in a form. I somewhat understand that they do not align due to the default theme, but don't really know how to create my own theme or fix this problem.

Any help on how to fix this problem would be helpful.
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you specify theme="simple" either at the submit button level or at the form level, this tells Struts not to put any <td> tags around the input field. That leaves you free to format it however you want.
 
Charles Z Martin
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was afraid of using the simple theme as I thought I would lose some functionality.

Shows what I know, it worked perfectly. Thanks!
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!