0 Replies Latest reply on May 23, 2007 3:34 PM by Oleg Poleshuk

    JBoss 4.2.0 JSP Problem pasring EL expression

    Oleg Poleshuk Newbie

      Hello!

      We are upgrading from AS 4.0.5.GA to 4.2.0.GA and have confronted with the next troubles: JbossWeb can't parse EL expressions.
      But in Jboss AS 4.0.5.GA all works fine.

      org.apache.jasper.JasperException: An exception occurred processing JSP page /customize/controls/site_id.jsp at line 4
      
      1: <% pageContext.setAttribute("DivId", "site_id"); %>
      2:
      3: <script type="text/javascript">
      4: var logo = "${lp.siteIdDisplay eq 'LOGO'?lp.logo:''}";
      5:
      6: function customize${DivId}(form) {
      7: var displayType = document.getElementById("${DivId}_showSelect").value;
      
      
      Stacktrace:
       org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:518)
       org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:429)
       org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
       org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
       org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1078)
       org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:292)
       org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:396)
       org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:344)
       org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:232)
       org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
       org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
       com.payrev.web.domainer.DomainerSecurityFilter.doFilter(DomainerSecurityFilter.java:58)
       org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      
      root cause
      
      javax.el.ELException: Error Parsing: ${lp.siteIdDisplay eq 'LOGO'?lp.logo:''}
       org.apache.el.lang.ExpressionBuilder.createNodeInternal(ExpressionBuilder.java:125)
       org.apache.el.lang.ExpressionBuilder.build(ExpressionBuilder.java:146)
       org.apache.el.lang.ExpressionBuilder.createValueExpression(ExpressionBuilder.java:190)
       org.apache.el.ExpressionFactoryImpl.createValueExpression(ExpressionFactoryImpl.java:68)
       org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:927)
       org.apache.jsp.customize.template1_jsp._jspService(template1_jsp.java:202)
       org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
       org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:387)
       org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
       org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
       org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1078)
       org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:292)
       org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:396)
       org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:344)
       org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:232)
       org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
       org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
       com.payrev.web.domainer.DomainerSecurityFilter.doFilter(DomainerSecurityFilter.java:58)
       org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      
      root cause
      
      org.apache.el.parser.ParseException: Encountered "lp.logo: \'\'" at line 1, column 30.
      Was expecting one of:
       "(" ...
       <IDENTIFIER> ...
       <NAMESPACE> <IDENTIFIER> ...
      
       org.apache.el.parser.ELParser.generateParseException(ELParser.java:1874)
       org.apache.el.parser.ELParser.jj_consume_token(ELParser.java:1754)
       org.apache.el.parser.ELParser.NonLiteral(ELParser.java:1136)
       org.apache.el.parser.ELParser.ValuePrefix(ELParser.java:1030)
       org.apache.el.parser.ELParser.Value(ELParser.java:978)
       org.apache.el.parser.ELParser.Unary(ELParser.java:960)
       org.apache.el.parser.ELParser.Multiplication(ELParser.java:723)
       org.apache.el.parser.ELParser.Math(ELParser.java:643)
       org.apache.el.parser.ELParser.Compare(ELParser.java:455)
       org.apache.el.parser.ELParser.Equality(ELParser.java:349)
       org.apache.el.parser.ELParser.And(ELParser.java:293)
       org.apache.el.parser.ELParser.Or(ELParser.java:237)
       org.apache.el.parser.ELParser.Choice(ELParser.java:203)
       org.apache.el.parser.ELParser.Expression(ELParser.java:183)
       org.apache.el.parser.ELParser.DynamicExpression(ELParser.java:155)
       org.apache.el.parser.ELParser.CompositeExpression(ELParser.java:52)
       org.apache.el.lang.ExpressionBuilder.createNodeInternal(ExpressionBuilder.java:93)
       org.apache.el.lang.ExpressionBuilder.build(ExpressionBuilder.java:146)
       org.apache.el.lang.ExpressionBuilder.createValueExpression(ExpressionBuilder.java:190)
       org.apache.el.ExpressionFactoryImpl.createValueExpression(ExpressionFactoryImpl.java:68)
       org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:927)
       org.apache.jsp.customize.template1_jsp._jspService(template1_jsp.java:202)
       org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
       org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:387)
       org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
       org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
       org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1078)
       org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:292)
       org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:396)
       org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:344)
       org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:232)
       org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
       org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
       com.payrev.web.domainer.DomainerSecurityFilter.doFilter(DomainerSecurityFilter.java:58)
       org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)