GeeCON Prague 2014*
The moose likes Struts and the fly likes Bypass Struts Validation framework  when using LookUpDispatch Action Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Bypass Struts Validation framework  when using LookUpDispatch Action" Watch "Bypass Struts Validation framework  when using LookUpDispatch Action" New topic
Author

Bypass Struts Validation framework when using LookUpDispatch Action

Dinesh Vijay
Greenhorn

Joined: Oct 19, 2007
Posts: 1
Hi,

In Struts, when I use LookUpDispatch action, I need to bypass Validation frame work for certain functions i.e. I need validation to be performed on ADD/UPDATE function, but when user selects View, Validations needs to bypassed.

These function reside on the same UI.

Kindly advice me on the processes to achive this.

Thanks in Advance.
Dinesh
Seth Jackson
Greenhorn

Joined: Jan 29, 2007
Posts: 3
In the validate() method on the form, you can validate the request parameter to determine if the validate() method should continue to execute or return an empty ActionErrors.



Seth Jackson
SCJP 1.4
Seth Jackson
Greenhorn

Joined: Jan 29, 2007
Posts: 3
In the validate() method on the form, you can validate the request parameter to determine if the validate() method should continue to execute or return an empty ActionErrors.

 
GeeCON Prague 2014
 
subject: Bypass Struts Validation framework when using LookUpDispatch Action