You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by "Craig McClanahan (JIRA)" <ji...@apache.org> on 2006/04/26 08:14:53 UTC
[jira] Moved: (SHALE-110) [shale] Name and location of validation
rules file(s) should be configurable
[ http://issues.apache.org/struts/browse/SHALE-110?page=all ]
Craig McClanahan moved STR-2707 to SHALE-110:
---------------------------------------------
Project: Shale (was: Struts Action 1)
Key: SHALE-110 (was: STR-2707)
Component: (was: Shale)
Version: (was: Nightly Build)
Assign To: (was: Struts Developer Mailing List)
> [shale] Name and location of validation rules file(s) should be configurable
> ----------------------------------------------------------------------------
>
> Key: SHALE-110
> URL: http://issues.apache.org/struts/browse/SHALE-110
> Project: Shale
> Type: Improvement
> Environment: Operating System: other
> Platform: Other
> Reporter: Wendy Smoak
> Priority: Minor
>
> The oas.validator.CommonsValidator class loads rules and messages from locations
> hard-coded in the class. (Currently /WEB-INF/validator-rules.xml (but see Bug#
> 38042), and /org/apache/shale/validator/messages.properties.)
> These files can be overridden by placing modified versions under
> WEB-INF/classes, and depending on the order in which the Servlet container is
> required to load them (WEB-INF/classes before WEB-INF/lib).
> We should allow users to configure the name and location of these files, for
> example:
> web.xml:
> <!-- Shale Validator Configuration Resources -->
> <context-param>
> <param-name>validator-config-files</param-name>
> <param-value>
> /org/apache/shale/validator/validator-rules.xml
> /WEB-INF/validation.xml
> </param-value>
> </context-param>
> <!-- Shale Validator Message Resources Bundle -->
> <context-param>
> <param-name>validator-bundle-name</param-name>
> <param-value>org.apache.shale.validator.messages</param-value>
> </context-param>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org