For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 3 replies, 3 voices, and was last updated 21 years ago by
Riyad Kalla.
-
AuthorPosts
-
stc1MemberHi all
I just started to use JSTL with using Myeclipse but I got errors , I am using JBoss server and I just tried the following:<%@ taglib uri=”http://java.sun.com/jstl/core” prefix=”c” %>
<html>
<head>
<title>Count to 10 Example (using JSTL)</title>
</head><body>
<c:forEach var=”i” begin=”1″ end=”10″ step=”1″>
<c:out value=”${i}” /><br />
</c:forEach>
</body>
</html>and I got these messages
org.apache.jasper.JasperException: /MyJsp.jsp(9,6) According to TLD or attribute directive in tag file, attribute value does not accept any expressions
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:405)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:146)
org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:955)
org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:710)
org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:730)
org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
org.apache.jasper.compiler.Validator.validate(Validator.java:1489)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:157)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)thanks in advance if anyone can help..
stc1
August 11, 2005 at 8:46 am #234571
Scott AndersonParticipantstc1,
Perhaps you added the 1.0 JSTL libraries instead of 1.1 to your project?
August 11, 2005 at 9:16 pm #234610
stc1Member@support-scott wrote:
stc1,
Perhaps you added the 1.0 JSTL libraries instead of 1.1 to your project?
I created the webproject again and I choosed JSTL 1.1, but Unfortunately I got same errors?
August 12, 2005 at 12:36 pm #234644
Riyad KallaMemberAre you being sure to create a J2EE 1.4 project and not a 1.3? Are you deploying this to JBoss 4 or 3? Have you tried adding the page directive attribute “isElIgnored=false” to the page?
-
AuthorPosts
