| Author |
problem designing jsp using struts 2.0 tags
|
Prashant K. Singh
Greenhorn
Joined: May 11, 2009
Posts: 18
|
|
Hi dear,
I have created an invoice.jsp using struts 2.0 tags. The trouble is that its creating all the fields in one column. I want to have multiple columns in a row. I have used the <tr><td> tags to create various column but its now following those tags.
I am posting the invoice.jsp code for your reference.
|
Prashant Singh
|
 |
Ankit Garg
Saloon Keeper
Joined: Aug 03, 2008
Posts: 9189
|
|
|
Prashant, I think you should get some knowledge about struts 2 themes and templates. Basically struts 2 by default uses XHTML theme which generates formatting tags for you automatically. To disable this, you can set the theme of your tags to simple. When you set a theme of a tag, it automatically applies to the sub-tags. So you can use theme="simple" in your s:form tag to solve your problem...
|
SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
|
 |
Prashant K. Singh
Greenhorn
Joined: May 11, 2009
Posts: 18
|
|
Dear Ankit,
I have been able to design multiple columns in a row using the "qxhtml" scheme. However my first column extends across two rows. How do I achieve that i.e. how do i extend the width of a column.
Thanks in anticipation.
|
 |
 |
|
|
subject: problem designing jsp using struts 2.0 tags
|
|
|