Not sure if anyone said this already, but... if the validation failures
are mutually exclusive, i.e., type 1 cannot occur when submission was
from page 2, and type 2 cannot occur when submission was from page 1,
then I think all you need to do is create another mapping in
struts-config, both identical except for different input parameters.
Even if the errors are not mutually exclusive, you can interrogate the
incoming request to see which mapping was triggered, and only perform
the validation appropriate to the mapping.
Frank
Jakub Milkiewicz wrote:
Hi
I am not sure if you can do it easily. Maybe some plubing will be needed.
Anyway
concern validation in Action and then forward or redirect wherever you
want.
2006/5/4, Troy Bull <[EMAIL PROTECTED]>:
Greetings
I have an application i have inherited. There is a situation where 2
jsp's submit to the same action with the same form bean. In the
validation function inside the form bean if there is one type of error I
want to set the input parameter to /jsp1.jsp and put an ActionError on
the ActionErrors. If there is an error of type 2 I want to set the
input parameter to /jsp2.jsp and put an error on the ActionsErrors.
The just of all this is: the input parameter is set in struts-config.xml
and it validation fails it goes back to this jsp for the user to fix
it. I need to change the input jsp page dynamically from inside the
form bean.
Please help
thanks
troy
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Java Web Parts -
http://javawebparts.sourceforge.net
Supplying the wheel, so you don't have to reinvent it!
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]