jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sh...@apache.org
Subject cvs commit: jakarta-taglibs/standard/src/javax/servlet/jsp/jstl/core Config.java
Date Wed, 24 Apr 2002 21:26:04 GMT
shawn       02/04/24 14:26:04

  Modified:    standard/src/javax/servlet/jsp/jstl/core Config.java
  Log:
  We shouldn't check SESSION_SCOPE when no session is present.  I'll follow
  up with Pierre to make sure this is mentioned in the spec.
  
  Revision  Changes    Path
  1.6       +4 -1      jakarta-taglibs/standard/src/javax/servlet/jsp/jstl/core/Config.java
  
  Index: Config.java
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/standard/src/javax/servlet/jsp/jstl/core/Config.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- Config.java	16 Apr 2002 15:46:47 -0000	1.5
  +++ Config.java	24 Apr 2002 21:26:03 -0000	1.6
  @@ -348,7 +348,10 @@
   	if (ret == null) {
   	    ret = get(pc, name, PageContext.REQUEST_SCOPE);
   	    if (ret == null) {
  -		ret = get(pc, name, PageContext.SESSION_SCOPE);
  +		if (pc.getSession() != null) {
  +		    // check session only if a session is present
  +		    ret = get(pc, name, PageContext.SESSION_SCOPE);
  +		}
   		if (ret == null) {
   		    ret = get(pc, name, PageContext.APPLICATION_SCOPE);
   		    if (ret == null) {
  
  
  

--
To unsubscribe, e-mail:   <mailto:taglibs-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-dev-help@jakarta.apache.org>


Mime
View raw message