Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts Validation - Disabled fields

 
Luke Zechariah
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can we validate disabled fields in struts? Like there is a text box disabled but have to validate it. Has anyone done it? Thank you for your time.

Lk.
 
michelle Wang
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That disabled field is in a ActionForm right? If all your fields in an ActionForm, no matter it is enabled or disabled, you still can do validation in your Action, which is the server side. The disabled function only cared in JSP level,so should have no pbm.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic