This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes STruts Tag basic doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "STruts Tag basic doubt" Watch "STruts Tag basic doubt" New topic

STruts Tag basic doubt

Ramkumar Subburaj
Ranch Hand

Joined: Sep 07, 2007
Posts: 83

I am new to struts and starting with struts 2.1.8

For struts tag like textfield, the generated HTML seems to be some thing like

Is creating the rows and columns default behavior and can't it be modified.

There might be scenarios where i want to achieve UI using DIV's instead of tables.

SCJP 1.5, SCWCD 1.4.
Hanging between Web Services and EJB
Anbarasu Aladiyan
Ranch Hand

Joined: Jun 02, 2009
Posts: 182

Hi Ramkumar Subburaj,
By default struts2 uses 'xhtml' theme. And it can be modified by setting it in struts property file. like

David Newton

Joined: Sep 29, 2008
Posts: 12617

Or try the css_xhtml theme, although the last time I looked it was still missing some ids that'd be nice to have.
Don't get me started about those stupid light bulbs.
subject: STruts Tag basic doubt
Similar Threads
problem laying out element of ordered list with logic iterate
Need help selected text fields visible for particular option from drop down list in JSP(struts)
html:img NullPointerException
Can't get parameter in struts when using input type="file"...?