aspose 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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Validation of enable/disabled form field
 
Similar Threads
client side and serverside validation
count errors in jsp using validation framwork
Have any problem using validator
Validation Form Error Message Location
By pass Struts Validation