You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jim Young <no...@hotmail.com> on 2002/09/26 16:40:09 UTC
Re: Distinct case in validate() with a form used in several page
Couldn't you create your actionFormBean and then create sub-classes for each
different type of validation? Might give you a cleaner solution.
Jim
>From: Vincent Berruchon <vi...@neo-logism.fr>
>Reply-To: "Struts Users Mailing List" <st...@jakarta.apache.org>
>To: Struts Users Mailing List <st...@jakarta.apache.org>
>Subject: Distinct case in validate() with a form used in several page
>Date: Thu, 26 Sep 2002 16:35:06 +0200
>
> I'd like to use an actionFormBean with a few JSP form page.
>But I'll have to treat different cases in the validate of my
>actionFormBean...
>So in validate(), I was thinking about looking at the name of the input JSP
>with ActionMapping.getInput()
>( or perhaps the name of the current action to choose the right case, /w
>getType() ).
>
>Is it an acceptable way to do that?
>I coulds also use an property of the formBean perhaps...
>
>Thanks
>
>
>--
>To unsubscribe, e-mail:
><ma...@jakarta.apache.org>
>For additional commands, e-mail:
><ma...@jakarta.apache.org>
Jim Young
Northern Objects Inc.
905 781-7019
_________________________________________________________________
Join the worlds largest e-mail service with MSN Hotmail.
http://www.hotmail.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>