vgritsenko    02/01/10 08:08:52

  Modified:    src/java/org/apache/cocoon/selection
                        SessionAttributeSelector.java
  Log:
  Do not cast to String session attributes. I guess it was a typo
  
  Revision  Changes    Path
  1.2       +3 -3      
xml-cocoon2/src/java/org/apache/cocoon/selection/SessionAttributeSelector.java
  
  Index: SessionAttributeSelector.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/selection/SessionAttributeSelector.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SessionAttributeSelector.java     3 Jan 2002 12:31:19 -0000       1.1
  +++ SessionAttributeSelector.java     10 Jan 2002 16:08:52 -0000      1.2
  @@ -30,7 +30,7 @@
    *
    * @author <a href="mailto:[EMAIL PROTECTED]";>Christian Haul</a>
    * @author <a href="mailto:[EMAIL PROTECTED]";>Sylvain Wallez</a>
  - * @version CVS $Revision: 1.1 $ $Date: 2002/01/03 12:31:19 $
  + * @version CVS $Revision: 1.2 $ $Date: 2002/01/10 16:08:52 $
    */
   public class SessionAttributeSelector extends AbstractLoggable
     implements Configurable, ThreadSafe, Selector {
  @@ -49,9 +49,9 @@
               return false;
           }
   
  -        String value = 
(String)ObjectModelHelper.getRequest(objectModel).getSession().getAttribute(name);
  +        Object value = 
ObjectModelHelper.getRequest(objectModel).getSession().getAttribute(name);
           if (value == null) {
  -            getLogger().debug("Request parameter '" + name + "' not set -- 
failing.");
  +            getLogger().debug("Session attribute '" + name + "' not set -- 
failing.");
               return false;
           }
   
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to