File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Struts Validation - Disabled fields

Luke Zechariah
Ranch Hand

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

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
I agree. Here's the link:
subject: Struts Validation - Disabled fields
It's not a secret anymore!