Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
 
 
subject: Validation of enable/disabled form field
 
Similar Threads
client side and serverside validation
Have any problem using validator
By pass Struts Validation
Validation Form Error Message Location
count errors in jsp using validation framwork