aspose file tools*
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
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Struts Validation - Disabled fields
 
Similar Threads
validation in struts
Validate disabled fields
problem in getting already existing values
Using same form for insert and update
dynamic fields