Hi Can!

actually, i can't think of any other 'standard' solution
(using the actionValidator you still would need the single input attribute)

Maybe you could use a combined change of ActionMapping and
ValidatorActionForm.

Subclass those and set them in your config files.
Change the ActionMapping so that getInputForward returns the forward you
want. In validation of the form set this to what you want it to be.

Let me know if it works ;)
hth,
axel

On 2004-11-05 at 12:10:01 +0100, Can Gencer wrote:
> Hello,
> 
> I have multiple forms that point to the same action. It is not a
> multipage form, it is done as different types of searches done on
> different pages) and I would like to validate the forms individually
> using the validate() method on the form bean. However, I am required to
> define an input= parameter for the action for the validation, and since
> the input pages can be different.
> 
> I can solve this problem by having a different action name for each
> search page and make them point to the same action class, but is there a
> nicer solution for this?
> 
> Thanks,
> Can
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to