Currently the xml file is in the package with the struts action.  I this this 
is where my problem lies, should it be in the model package?

MG 

-----Original Message-----
From: Lukasz Lenart [mailto:lukasz.len...@googlemail.com] 
Sent: Friday, April 16, 2010 9:26 AM
To: Griffith, Michael *
Subject: Re: How to reuse field validators?

W dniu 16 kwietnia 2010 14:51 użytkownik Griffith, Michael * 
<michael.griff...@fda.hhs.gov> napisał:
> I want to reuse the field validations in <modelClass>-validator.xml in two 
> different Action classes in two different packages and different namespaces. 
> Is there a way to do that without copying the XML file?

Your model validation should work, if you are using the same model in different 
actions. Maybe the name is wrong -> <modelClass>-validation.xml?


Regards
--
Łukasz
http://www.lenart.org.pl/
Kapituła Javarsovia 2010
http://javarsovia.pl

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to