The moose likes Struts and the fly likes Struts2 TextField Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts2 TextField" Watch "Struts2 TextField" New topic

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

Joined: Sep 29, 2008
Posts: 12617

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

I agree. Here's the link:
subject: Struts2 TextField
It's not a secret anymore!