*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Bypass Struts Validation framework when using LookUpDispatch Action
 
Similar Threads
Struts 1: Selective Validation of Form
Multiple image buttons on a Struts Form
How to know the type of request coming from the form
Doubt in LookupDispatchAction
DispatchAction and html:cancel