aspose file tools*
The moose likes Struts and the fly likes Using Validator in struts. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Using Validator in struts." Watch "Using Validator in struts." New topic
Author

Using Validator in struts.

Subrata Biswas
Greenhorn

Joined: Nov 25, 2008
Posts: 9
Hi,

How to split validator-rules.xml file into multiple files in struts framework? Any Idea please?

With advance thanks
Subrata Biswas.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61217
    
  66

Please be sure to post Struts questions in the Struts forum. I have moved this post there for you.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Did you try the documentation?
Subrata Biswas
Greenhorn

Joined: Nov 25, 2008
Posts: 9
Hi Thanks, for your reply. I think I have got me wrong. That linked document tells me how to use it.
But My Query is not exactly that one. We need validator-rules.xml and validation.xml. Anyhow we have option to change the name also. Again I can specify different validation.xml like validation1.xml,validation2.xml,...validationN.xml. And we need to give the entry in struts-config.xml with coma separated. My query if I can break validation-rules.xml into multiple files?
If we can do it than for a big application we can split our all validator-rules to make it more maintainable.
Aditya Keyal
Ranch Hand

Joined: Dec 01, 2008
Posts: 71
Yes you can. Just mention the same in the struts-config.


- Aditya Webservices Blog
Subrata Biswas
Greenhorn

Joined: Nov 25, 2008
Posts: 9
Do you mean I need multiple file with different info but with the same format?
so I can have validator-rules-1.xml,validator-rules-2.xml.... and so on?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Yes. (Wouldn't it have been quicker to just try it? ;)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using Validator in struts.