geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anitha Krishnasamy" <krish.ani...@gmail.com>
Subject Re: JSP 2.1 with Jetty 6.0 and tomcat 6 distributions
Date Wed, 13 Dec 2006 14:26:26 GMT
Hi,

Here is the snippet of the code, I have tried with JSP 2.1.

<%@page trimDirectiveWhitespaces="true"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%
java.util.ArrayList locations= new java.util.ArrayList();
locations.add("One");
locations.add("Two");
pageContext.setAttribute("locations", locations);
%>

<c:forEach var="location" items="#{locations}">
<c:out value="#{location}"/>
</c:forEach>


Also I have added the jstl.jar(1.2) in the WEB-INF\lib
folder.But...Itthrows the following error related to Expression
language.

HTTP ERROR: 500

/SampleJSP.jsp(23,0) According to TLD or attribute directive in tag
file, attribute value does not accept any expressions

RequestURI=/SampleJSP/SampleJSP.jsp
Caused by:

org.apache.jasper.JasperException: /SampleJSP.jsp(23,0) According to
TLD or attribute directive in tag file, attribute value does not
accept any expressions
	at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
	at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:406)
	at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:147)
	at org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:1094)
	at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:818)
	at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1507)
	at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336)
	at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2386)
	at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:837)
	at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1507)
	at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336)
	at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2386)
	at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2392)
	at org.apache.jasper.compiler.Node$Root.accept(Node.java:489)
	at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336)
	at org.apache.jasper.compiler.Validator.validate(Validator.java:1679)
	at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:178)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
	at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:314)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:465)
	at org.apache.geronimo.jetty6.InternalJettyServletHolder.handle(InternalJettyServletHolder.java:62)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
	at org.apache.geronimo.jetty6.JettyServletHandler.doHandle(JettyServletHandler.java:55)
	at org.apache.geronimo.jetty6.JettyServletHandler$ActualJettyServletHandler.handle(JettyServletHandler.java:62)
	at org.apache.geronimo.jetty6.JettyServletHandler$NoOpChainedHandler.handle(JettyServletHandler.java:70)
	at org.apache.geronimo.jetty6.JettyServletHandler.handle(JettyServletHandler.java:47)
	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:231)
	at org.apache.geronimo.jetty6.handler.ThreadClassloaderHandler.handle(ThreadClassloaderHandler.java:46)
	at org.apache.geronimo.jetty6.handler.ComponentContextHandler.handle(ComponentContextHandler.java:47)
	at org.apache.geronimo.jetty6.handler.InstanceContextHandler.handle(InstanceContextHandler.java:58)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:682)
	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:390)
	at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:123)
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:141)
	at org.mortbay.jetty.Server.handle(Server.java:303)
	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:446)
	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:729)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500)
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:346)
	at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:217)
	at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)

*Powered by Jetty:// <http://jetty.mortbay.org/>*
Thanks....
Anitha K

Mime
View raw message