You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by jgfa92004 <ju...@yahoo.fr> on 2005/01/14 12:11:26 UTC
Different validations for one form
Hi everybody,
Here is my problem : I have two jsp that share the same action class
(and the same form). As they don't contain the same fields, I would
like to have two different validations : one for each jsp. I use
Validator and Struts 1.2. How can I do that ?
Thanks in advance.
Julie
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Friday: 90% off-topic question
Posted by Marco Mistroni <mm...@waersystems.com>.
Hello all,
Has anyone ever used Axis together with Quartz? I am trying to
Schedule an automated job that connects to a remove webservice..
I guess quartz is serializing the reference to the remote webservice,
and when my task is scheduled for execution, somehow the reference to
the webservice is lost..
You may wonder, where is the link with Struts? Well, I am using Quartz
as part of a Struts application that connects to a remote webservice
written with Axis
Regards
marco
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Different validations for one form
Posted by Joe Germuska <Jo...@Germuska.com>.
At 11:11 AM +0000 1/14/05, jgfa92004 wrote:
>Hi everybody,
>Here is my problem : I have two jsp that share the same action class
>(and the same form). As they don't contain the same fields, I would
>like to have two different validations : one for each jsp. I use
>Validator and Struts 1.2. How can I do that ?
>Thanks in advance.
>Julie
Use ValidatorActionForm or DynaValidatorActionForm and when the
validate() method is called by Struts, the validation rules will be
looked up using the action path instead of the form bean name. That
is, in your validator config, where you might have had "<form
name="EditImage">", you would now have "<form
name="/path/to/EditImageAction">"
Joe
--
Joe Germuska
Joe@Germuska.com
http://blog.germuska.com
"Narrow minds are weapons made for mass destruction" -The Ex
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org