From: Felipe L. (JIRA) <ji...@co...> - 2006-06-14 12:43:45
|
[ http://jira.codehaus.org/browse/JETTY-52?page=comments#action_67374 ] Felipe Leme commented on JETTY-52: ---------------------------------- I have a similar issue and was suspicious the problem was related to JSP 2.1. But rather then removing the jars, it would be better to set Jetty to explicitely use JSP 2.0 (even if being run on JDK 5.0). So, I've opened another Jira (JETTY-73) for this issue. > expression language bean properties stop working > ------------------------------------------------ > > Key: JETTY-52 > URL: http://jira.codehaus.org/browse/JETTY-52 > Project: Jetty > Type: Bug > Components: JSP > Versions: 6.0.0beta14 > Environment: Jetty 6 beta 14 Maven Plugin, Windows XP SP2, JDK 1.5_06 > Reporter: Greg Wiley > Priority: Critical > > > After certain page accesses, EL expressions stop working. > The first time through, expressions are evaluated and output correctly but after a certain page access they will stop working and all bean property accessors stop working until the container is stopped and restarted (an auto-reload is not sufficient). In my own code, I have noticed that sometimes a bean expression with no property accessor is still evaluated correctly but that anything with an accessor is not. The code below does not exhibit that behavior and I cannot recreate it in a simple example. > e.g. > ${bean} evaluates and outputs the stringized bean but > ${bean.name} does not > This occurs in beta 14 but not beta 12, 11, or 9. And itt appears to be related to using JSP2 tag files as that is the commonality I have found in my own tests. > Here are a page and tag file that demonstrate. Under beta14, these display correctly the first time, but not on subsequent runs. Under beta12, these display fine on every invocation. > ----- /bean.jsp ---------------------------------------- > <html> > <%@ taglib > prefix="my" > tagdir="/WEB-INF/tags/mytags"%> > <head> > <title>Operate On User</title> > </head> > <body> > <jsp:useBean id="bean" class="java.util.Date"/> > <p>${bean.time}</p> > <p><my:out value="${bean}" /></p> > </body> > </html> > ----- /tags/mytags/out.tag -------------------------- > <%@ tag > body-content="empty" > dynamic-attributes="attribs"%> > <%@ attribute > name="value" > required="true" > type="java.lang.Object"%> > ${value} -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |