You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by "Zvolensky, Thomas J {PDBI~Nutley}" <TH...@ROCHE.COM> on 2002/03/29 17:21:50 UTC
Error using JSTL
Hi,
I'm attempting to use the SQL tags provided with the JSTL 1.0 beta tag
library.
When I add the following line to my jsp page to import them into the page:
<%@ taglib prefix="sql" uri="http://java.sun.com/jstl/ea/sql" %>
I get the following error screen for my page:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++
type Exception report
message Internal Server Error
description The server encountered an internal error (Internal Server Error)
that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Unable to parse the expression
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:457)
at org.apache.jsp.Query3b$jsp._jspService(Query3b$jsp.java:111)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:202)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:201)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:163)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1011)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106
)
at java.lang.Thread.run(Thread.java:484)
root cause
Unable to parse the expression:
org.apache.taglibs.standard.lang.jstl.parser.ParseException: Encountered ":"
at line 1, column 6.
Was expecting one of:
"}" ...
"." ...
...
...
"==" ...
...
...
"!=" ...
"[" ...
"+" ...
"-" ...
"*" ...
...
...
"and" ...
"or" ...
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++
By the process of elimination, the error is caused when the above <%@
taglib... line is in the page.
Does anybody know why this occurs?
Re: Error using JSTL
Posted by "David M. Karr" <dm...@earthlink.net>.
>>>>> "Thomas" == Thomas J Zvolensky <Zvolensky> writes:
Thomas> Hi,
Thomas> I'm attempting to use the SQL tags provided with the JSTL 1.0 beta tag
Thomas> library.
Thomas> When I add the following line to my jsp page to import them into the page:
Thomas> <%@ taglib prefix="sql" uri="http://java.sun.com/jstl/ea/sql" %>
Thomas> I get the following error screen for my page:
Thomas> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Thomas> ++++++++++++++++++
Thomas> root cause
Thomas> Unable to parse the expression:
Thomas> org.apache.taglibs.standard.lang.jstl.parser.ParseException: Encountered ":"
Thomas> at line 1, column 6.
Could you show us the entire JSP, or at least the beginning of it, including
this line?
--
===================================================================
David M. Karr ; Java/J2EE/XML/Unix/C++
dmkarr@earthlink.net
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>