dgraham     2003/07/01 20:52:02

  Modified:    src/share/org/apache/struts/taglib/html HtmlTag.java
  Log:
  Removed deprecated method.
  
  Revision  Changes    Path
  1.12      +4 -39     
jakarta-struts/src/share/org/apache/struts/taglib/html/HtmlTag.java
  
  Index: HtmlTag.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-struts/src/share/org/apache/struts/taglib/html/HtmlTag.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- HtmlTag.java      8 Mar 2003 19:23:49 -0000       1.11
  +++ HtmlTag.java      2 Jul 2003 03:52:01 -0000       1.12
  @@ -74,7 +74,6 @@
   import org.apache.struts.util.RequestUtils;
   import org.apache.struts.util.ResponseUtils;
   
  -
   /**
    * Renders an HTML <html> element with appropriate language attributes if
    * there is a current Locale available in the user's session.
  @@ -83,7 +82,6 @@
    * @author David Graham
    * @version $Revision$ $Date$
    */
  -
   public class HtmlTag extends TagSupport {
     
   
  @@ -197,39 +195,6 @@
   
       // ------------------------------------------------------ Protected Methods
   
  -
  -    /**
  -     * Return the current Locale for this request, creating a new one if
  -     * necessary.  If there is no current Locale, and locale support is not
  -     * requested, return <code>null</code>.
  -     * @deprecated Use getCurrentLocale instead because it makes the display logic
  -     * easier.
  -     */
  -    protected Locale currentLocale() {
  -
  -        // Create a new session if necessary
  -        HttpSession session = pageContext.getSession();
  -        if (locale && (session == null)) {
  -            session =
  -                ((HttpServletRequest) pageContext.getRequest()).getSession();
  -        }
  -        
  -        // Return any currently set Locale in our session
  -        Locale current = (Locale) session.getAttribute(Globals.LOCALE_KEY);
  -        if (current != null) {
  -            return (current);
  -        }
  -
  -        // Configure a new current Locale, if requested
  -        if (!locale) {
  -            return (null);
  -        }
  -        
  -         // If client doesn't specify locale then default for server will be 
returned
  -        current = pageContext.getRequest().getLocale();
  -        session.setAttribute(Globals.LOCALE_KEY, current);       
  -        return (current);
  -    }
   
       /**
        * Return the current Locale for this request.  If there is no locale in the 
session and
  
  
  

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

Reply via email to