File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Struts2 UI Tags Not Aligned On Browser Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "Struts2 UI Tags Not Aligned On Browser" Watch "Struts2 UI Tags Not Aligned On Browser" New topic
Author

Struts2 UI Tags Not Aligned On Browser

Hakan Gercek
Greenhorn

Joined: May 20, 2005
Posts: 2
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.


[Download printer_question_on_javaranch.bmp] Download

David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

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
Saloon Keeper

Joined: Aug 03, 2008
Posts: 9189
    
    2

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 ]


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Struts2 UI Tags Not Aligned On Browser
 
Similar Threads
struts2 select and js
Help in Debugging
How to retain the latest selected value of drop down box.
unable to do validation for select in struts2
Problem while implementing cascade select option in Struts2 [City/Locality/Streets]