From: Greg W. (JIRA) <ji...@co...> - 2006-04-29 14:53:20
|
[ http://jira.codehaus.org/browse/JETTY-52?page=comments#action_64382 ] Greg Wiley commented on JETTY-52: --------------------------------- I switched to the snapshot and the problem went away. When it occurs, it throws no exceptions nor does jetty generate any log information pertaining to it. > 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: Blocker > > > 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 |