Meaningless Drivel is fun!
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Validation error when input type is action" Watch "Validation error when input type is action" New topic

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.

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:
subject: Validation error when input type is action
It's not a secret anymore!