• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

problem designing jsp using struts 2.0 tags

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
Sheriff
Posts: 9708
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
Any sufficiently advanced technology will be used as a cat toy. And this tiny ad contains a very small cat:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic