rleland 2003/07/30 20:47:56
Modified: src/share/org/apache/struts/tiles/xmlDefinition
I18nFactorySet.java
Log:
Replace deprecated constant reference with
it's base interface equal.
Revision Changes Path
1.10 +5 -4
jakarta-struts/src/share/org/apache/struts/tiles/xmlDefinition/I18nFactorySet.java
Index: I18nFactorySet.java
===================================================================
RCS file:
/home/cvs/jakarta-struts/src/share/org/apache/struts/tiles/xmlDefinition/I18nFactorySet.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- I18nFactorySet.java 27 Jul 2003 04:59:44 -0000 1.9
+++ I18nFactorySet.java 31 Jul 2003 03:47:55 -0000 1.10
@@ -82,6 +82,7 @@
import org.apache.struts.tiles.DefinitionsFactoryException;
import org.apache.struts.tiles.DefinitionsUtil;
import org.apache.struts.tiles.FactoryNotFoundException;
+import org.apache.struts.taglib.tiles.ComponentConstants;
import org.xml.sax.SAXException;
/**
@@ -344,7 +345,7 @@
try {
HttpSession session = ((HttpServletRequest) request).getSession(false);
if (session != null) {
- locale = (Locale) session.getAttribute(DefinitionsUtil.LOCALE_KEY);
+ locale = (Locale)
session.getAttribute(ComponentConstants.LOCALE_KEY);
}
} catch (ClassCastException ex) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]