wood burning stoves*
The moose likes Struts and the fly likes Struts Validation - Disabled fields Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts Validation - Disabled fields" Watch "Struts Validation - Disabled fields" New topic
Author

Struts Validation - Disabled fields

Luke Zechariah
Ranch Hand

Joined: Sep 27, 2005
Posts: 117
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

Joined: Jan 12, 2004
Posts: 65
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.


michelle Wang <br />SCJP 1.4
 
Don't get me started about those stupid light bulbs.
 
subject: Struts Validation - Disabled fields
 
Similar Threads
Validate disabled fields
Using same form for insert and update
problem in getting already existing values
validation in struts
dynamic fields