You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ashish Kulkarni <as...@gmail.com> on 2009/09/09 03:43:32 UTC

Re: [Struts 1.2]Validation and multiple struts-config files

HiAny ideas?

On Fri, Aug 28, 2009 at 11:42 AM, Ashish Kulkarni <
ashish.kulkarni13@gmail.com> wrote:

> HiIf i have 2 struts-config.xml file can i have ValidatorPlugIn tag in
> both struts-config.xml file,  will this work??
>
> I ran into some issue trying to do so, i was getting could not find
> testForm in local "en_us" kind of error when trying to add client side
> validation
>
> For example if i have
>
> struts-config1.xml with
>
> <plug-in className="org.apache.struts.validator.ValidatorPlugIn">
> <set-property property="pathnames"
>  value="/WEB-INF/validator-rules.xml,*/WEB-INF/validation.xml*/>
> </plug-in>
>
> struts-config2.xml with
> <plug-in className="org.apache.struts.validator.ValidatorPlugIn">
> <set-property property="pathnames"
>  value="/WEB-INF/validator-rules.xml,*/WEB-INF/validation_base.xml*/>
> </plug-in>
>
> and in my web.xml i define
> <init-param>
> <param-name>config</param-name>
>
> <param-value>
>  /WEB-INF/struts-config1.xml,/WEB-INF/struts-config2.xml
> </param-value>
>  </init-param>
> Will this work?
> --
> Ashish
> www.ayurwellness.com
> www.mysoftwareneeds.com
>



-- 
Ashish
www.ayurwellness.com
www.mysoftwareneeds.com