tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rachel Greenham <rachel.green...@enetgroup.co.uk>
Subject Bug in expression-parsing in tags
Date Tue, 15 Aug 2000 16:56:58 GMT
OK, so I set the <rtexprvalue>true</rtexprvalue> property where I needed to
on my taglib attributes. I'm having a new problem, which is that it doesn't
seem to be parsing those expressions properly. It seems only to work if
there are no quote marks in the expression.

ie: This fails:

<mytaglib:IncludeIf condition="<%=request.getParameter("flag")%>">Flag is
true</mytaglib:IncludeIf>

It fails with the following:

org.apache.jasper.compiler.ParseException: /test.jsp(32,66) Attribute flag
has no value
        at
org.apache.jasper.compiler.JspReader.parseAttributeValue(JspReader.java:456)
        at
org.apache.jasper.compiler.JspReader.parseTagAttributes(JspReader.java:572)
        at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:795)
        at org.apache.jasper.compiler.Parser.parse(Parser.java:1073)
        at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
        at org.apache.jasper.compiler.Parser.parse(Parser.java:1034)
        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:182)
        at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413)
        at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:149)
        at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:161)
        at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
        at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
        at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
        at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:156)
        at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
        at java.lang.Thread.run(Thread.java:484)

(Tomcat 3.1)
-- 
Rachel

Mime
View raw message