I need to display two s:textfield in the same line like two TDs in one TR. But all I am getting is these are creating two TRs and are not in line. How to get it right and display both the textfields in the same line as if in the same TR. TIA
Also related to the struts tag I am facing this problem now as s:submit is being replaced with <div align=right> the button is not centrally aligned. How to get this correct.
Do we have "s:button" or similar tag in struts2 ?
Any link that does help understand these intricacies will be very helpful.
Struts uses the xhtml theme which generates some layout code in addition to the actual form elements. If you want to control the look yourself, you can use the simple theme which doesn't generate any layout tags like tr or td. To change the theme, you can use the theme attribute on the form or textfield or submit etc tags. All the tags that struts 2 has are listed here...