struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ashish Kulkarni <ashish.kulkarn...@gmail.com>
Subject Re: [Struts 1.2]Validation and multiple struts-config files
Date Wed, 09 Sep 2009 01:43:32 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message