This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan 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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "STruts Tag basic doubt" Watch "STruts Tag basic doubt" New topic
Author

STruts Tag basic doubt

Ramkumar Subburaj
Ranch Hand

Joined: Sep 07, 2007
Posts: 83
Hi,

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


A.A.Anbarasu
David Newton
Author
Rancher

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
Need help selected text fields visible for particular option from drop down list in JSP(struts)
html:img NullPointerException
problem laying out element of ordered list with logic iterate
MalformedURLException
Can't get parameter in struts when using input type="file"...?