Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem designing jsp using struts 2.0 tags

 
Prashant K. Singh
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
Ankit Garg
Sheriff
Posts: 9528
33
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Prashant K. Singh
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic