Isn't the validation.xml file defined in struts config?  So you could just
make separate files and include the appropriate one in each module's struts
config.

I haven't tried it but I imagine it would work.

-----Original Message-----
From: Chan, Jim [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 18, 2004 12:35 PM
To: '[EMAIL PROTECTED]'
Subject: Can validation.xml be modularized?



I have modularized my Struts application using different struts-config.xml
files. Also I am using different resource properties files for localization
for each module.  Everything works fine.  Currently, I am hooking up the
client side validation using the struts validation plugin.  However, the
only way I can get it working is to register all the form validation in the
validation.xml, and access the localized error messages using the default
resource properties file.

Does anyone know how to:

1.  modularize the validation.xml so that I can decompose it the same way as
I did for the struts-config files.  I tried using xml includes, but the
validation plugin complains that it can't find my validation1.xml file.  It
only works if I use the absolute file path.

<!DOCTYPE project [
  <!ENTITY validation1 SYSTEM "./validation1.xml">
]>

&validation1;

2.  when registering the forms in the validation.xml, access different
resources properties which I specify in the struts-config files 

Any help will be appreciated.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to