File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Bypass Struts Validation framework when using LookUpDispatch Action

 
Dinesh Vijay
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic