File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Validation error when input type is action 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 error when input type is action" Watch "Validation error when input type is action" New topic
Author

Validation error when input type is action

sarada bokka
Ranch Hand

Joined: Jan 13, 2010
Posts: 80
Hi All,

I have Action with method add,edit and save. Where add,edit refer to same modeldriven and page.
Now when saving if Actionerror fails if should result to add/edit actionrather than the page. Can some one help me how to achieve this.

When Input type is <result name="input">/Test.jsp</result> the validation works fine.
But if Input is action the validation doesn't work.


Regards,
sarada.
Mohana Rao Sv
Ranch Hand

Joined: Aug 01, 2007
Posts: 485

It's not easy to predict the correct solution for you. Post your code what you had done and ask the problem.


ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Validation error when input type is action
 
Similar Threads
Action Class member variables in Session Struts2
Action Mapping - Wildcard Methods - Good or Bad? (Struts 2)
Struts 2 validation chaining
Struts 2 reditect to same URL
struts2 validation result input cannot be an action?