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 <[EMAIL PROTECTED]> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> >To: Struts Users Mailing List <[EMAIL PROTECTED]> >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: ><mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: ><mailto:[EMAIL PROTECTED]> Jim Young Northern Objects Inc. 905 781-7019 _________________________________________________________________ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>