facebook

JSTL Problems

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #234531 Reply

    stc1
    Member

    Hi 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&#8221; 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

    #234571

    Scott Anderson
    Participant

    stc1,

    Perhaps you added the 1.0 JSTL libraries instead of 1.1 to your project?

    #234610

    stc1
    Member

    @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?

    #234644

    Riyad Kalla
    Member

    Are 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?

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: JSTL Problems

You must be logged in to post in the forum log in