This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts2 TextField 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 TextField" Watch "Struts2 TextField" New topic
Author

Struts2 TextField

Abiodun Adisa
Ranch Hand

Joined: Jan 17, 2002
Posts: 495
I am using Struts2 and on my page i have



But any time i look at the gererated HTML i see


this is messing up my HTML Page because i was just expecting to see only


Please how can i resolve this problem

Pradeep Adibatla
Ranch Hand

Joined: Oct 27, 2009
Posts: 336
give name and label as...

<s:textfield name="abc" label="xyz >

remove required field...

i think it shd work
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

The "required" attribute has nothing to do with the table generation.

See:

http://struts.apache.org/2.1.8/docs/themes-and-templates.html
http://struts.apache.org/2.1.8/docs/selecting-themes.html
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts2 TextField
 
Similar Threads
STRUTS2 Tabbed interface problem with Tiles tag in IE6
unable to do validation for select in struts2
substitute for DynaActionForm in struts2
Convert Html fields to Struts2 tags
Iterating a Array in Struts2