Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts2 TextField

 
Abiodun Adisa
Ranch Hand
Posts: 495
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 336
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
give name and label as...

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

remove required field...

i think it shd work
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic