You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by dg...@apache.org on 2003/07/02 04:46:12 UTC
cvs commit: jakarta-struts/src/share/org/apache/struts/validator Resources.java
dgraham 2003/07/01 19:46:12
Modified: src/share/org/apache/struts/validator Resources.java
Log:
Removed deprecated methods.
Revision Changes Path
1.12 +4 -28 jakarta-struts/src/share/org/apache/struts/validator/Resources.java
Index: Resources.java
===================================================================
RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/validator/Resources.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- Resources.java 22 May 2003 01:11:16 -0000 1.11
+++ Resources.java 2 Jul 2003 02:46:12 -0000 1.12
@@ -102,18 +102,6 @@
*/
public static String ACTION_ERRORS_KEY = "org.apache.struts.action.ActionErrors";
- /**
- * Retrieve <code>ValidatorResources</code> for the module.
- * @param application servlet context
- *
- * @deprecated In Struts 1.1 This method can only return the resources for the default
- * module. Use getValidatorResources(HttpServletRequest, ServletContext)
- * to get the resources for the current application module.
- */
- public static ValidatorResources getValidatorResources(ServletContext application) {
- return (ValidatorResources) application.getAttribute(ValidatorPlugIn.VALIDATOR_KEY);
- }
-
/**
* Retrieve <code>ValidatorResources</code> for the current module.
* @param application Application Context
@@ -129,18 +117,6 @@
return (ValidatorResources) application.getAttribute(
ValidatorPlugIn.VALIDATOR_KEY + prefix);
}
-
- /**
- * Retrieve <code>MessageResources</code> for the application module.
- * @param application servlet context
- *
- * @deprecated This method can only return the resources for the default
- * module. Use getMessageResources(HttpServletRequest) to get the
- * resources for the current module.
- */
- public static MessageResources getMessageResources(ServletContext application) {
- return (MessageResources) application.getAttribute(Globals.MESSAGES_KEY);
- }
/**
* Retrieve <code>MessageResources</code> for the module.
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org