File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Struts Validator problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts Validator problem" Watch "Struts Validator problem" New topic
Author

Struts Validator problem

Paco Exposito
Greenhorn

Joined: Jul 17, 2006
Posts: 3
I have configured 2 struts-config.xml files (struts-config1.xml and struts-config2.xml), two validation.xml files (validation1.xml and validation2.xml), one validator-rules.xml and the web.xml file.

Web xml file:
...
<param-value>/WEB-INF/struts-config1.xml,/WEB-INF/struts-config2.xml</param-value>
...

In struts-config1.xml I configure the plugin for validation1.xml
In struts-config2.xml I configure the plugin for validation2.xml

When I execute it, I obtain that ONLY the validation2.xml works, because it is the last file in the web.xml.

If I put <param-value>/WEB-INF/struts-config2.xml,/WEB-INF/struts-config1.xml</param-value>
then only the validation1.xml works.

Is there any reason for that?

Thanks a lot
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts Validator problem