aspose file tools*
The moose likes Struts and the fly likes problem designing jsp using struts 2.0 tags Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "problem designing jsp using struts 2.0 tags" Watch "problem designing jsp using struts 2.0 tags" New topic
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
Sheriff

Joined: Aug 03, 2008
Posts: 9302
    
  17

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.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem designing jsp using struts 2.0 tags