Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts2 UI Tags Not Aligned On Browser

 
Hakan Gercek
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new in struts2 and want to develop a program which inserts records into database. I have faced a problem while using UI Tags of struts2. Here is my code block in jsp:



In the above code block, I would like to align printerMark, markCheckbox and markTextField on the same row. On Eclipse screen, these are aligned. However, on browser, each UI component is placed on new row which can be found in the attachment.

Is there a way to align these components on the same row?

Thanks for advance.
Filename: printer_question_on_javaranch.bmp
Description: Browser Display
File size: 301 Kbytes
[Download printer_question_on_javaranch.bmp] Download Attachment
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://struts.apache.org/2.x/docs/themes-and-templates.html

The default theme is "xhtml", which renders table rows around UI elements.
 
Ankit Garg
Sheriff
Posts: 9521
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use simple theme of Struts. The default XHTML theme adds formatting information of its own. If you set the theme property of s:form tag, then all the s:select, s:textfield and s:checkbox in the form tag will be rendered without any formatting...

[Ahh, too late ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic