We have an issue where we are trying to set up validation.xml files for
action invocations that contain slashes. From running a debugger on the
XWork code it would appear that if action com.mycompany.action.MyAction is
being executed via the url /context-root/package/MyAction/operation.action
that the XWork validation framework is looking for a file in the classpath
of the form: 

com/mycompany/action/MyAction-package/MyAction/operation-validation.xml

This is an invalid java package name in the jar (no - characters allowed)
and so even if the validation.xml file is named appropriately and placed in
the appropriate directory it is failing to be found.

The culprit appears to be 2 lines in
com.opensymphony.xwork.validator.AnnotationActionValidatorManager:

String fileName = aClass.getName().replace('.', '/') + "-" + context +
VALIDATION_CONFIG_SUFFIX;

and

String fileName = aClass.getName().replace('.', '/') +
VALIDATION_CONFIG_SUFFIX;

should I be raising a Jira issue for this?

Peter Kelley
Fujitsu Australia Limited




-- 
View this message in context: 
http://www.nabble.com/Action-Validation-with-Slashes-tp17245638p17245638.html
Sent from the Struts - User mailing list archive at Nabble.com.


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

Reply via email to