Mantis - Resin
Viewing Issue Advanced Details
2499 minor always 03-06-08 13:36 03-20-08 13:06
sam  
ferg  
urgent  
closed 3.1.5  
fixed  
none    
none 3.1.6  
0002499: JSP problem with session scope attribute named 'application'
(rep by B Whitehead)

'application' is an POJO stored in the session like this:
   request.getSession().setAttribute("application", application);

In my application I am trying to use the JSTL 'c' taglib to do the
following:

   <%@ taglib prefix='c' uri='http://java.sun.com/jstl/core' [^] %>
   <c:if test="${application.id == 1}">
       <jsp:include page="/css/app1_css.jsp" />
   </c:if>
   <c:if test="${application.id == 2}">
       <jsp:include page="/css/app2_css.jsp" />
   </c:if>


Here is the exception that I receive when I try and load up a JSP
containing the above code:

   javax.el.PropertyNotFoundException: 'id' is an unknown bean property
of 'com.caucho.server.webapp.Application'
       at javax.el.BeanELResolver.getValue(BeanELResolver.java:196)
       at
com.caucho.jsp.el.PageContextELResolver.getValue(PageContextELResolver.java:175)
       at
com.caucho.el.ArrayResolverExpr.getValue(ArrayResolverExpr.java:148)
       at com.caucho.el.PathExpr.getValue(PathExpr.java:141)
       at com.caucho.el.EqExpr.evalBoolean(EqExpr.java:78)
       at

Notes
(0002861)
ferg   
03-20-08 13:06   
jsp/315n