File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Validation of enable/disabled form field Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Validation of enable/disabled form field" Watch "Validation of enable/disabled form field" New topic
Author

Validation of enable/disabled form field

sudhakar Tadepalli
Ranch Hand

Joined: Dec 27, 2001
Posts: 130
Hi,

I am using struts validation. I have a checkbox in the form which will be enabled and disables based and the user role. But I am having trouble validationg this checkbox.Any suggestions please ?

Thanks
Sudhakar
Kerry Wilson
Ranch Hand

Joined: Oct 29, 2003
Posts: 254
You can use the validwhen validator rule.


http://www.goodercode.com
SCJP 1.4
sudhakar Tadepalli
Ranch Hand

Joined: Dec 27, 2001
Posts: 130
Thsi application in productio nand using old version of struts jar. I can not use whalidWhen. But still I am not sure how this will ignore validation when filed is disabled and validates when filed is enabled. How it knows ?

-Sudhakar
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Validation of enable/disabled form field