facebook

MyEclipse finds inexistent error em c:forEach Tag

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

    microfilo
    Member

    hello

    MyEclipse says that the tag c:forEach is wrong in this code:

    
    <%@ page language="java" import="java.util.*" %>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <html>
      <head>
     
        <title>My JSP 'MyJsp.jsp' starting page</title>
        
            <link rel="stylesheet" type="text/css" href="styles.css">
       
      </head>
      
      <body>
        This is my JSP page. <br>
        <c:forEach var="i" begin="1" end="4">
        <FONT size="${i}">Hello World</FONT> <BR/>
        </c:forEach>
         </body>
    </html>
    [quote]
    
    but when I deploy the aplication, the code works, and is displayed "Hello World" in the 4 diferents sizes
    
    but MyEclipse says that the first c:forEach line is an error
    
    how to repair this error?
    #221138 Reply

    Riyad Kalla
    Member

    What exactly is the error? What are your <taglib> entries in your web.xml file? Do you have any? What version of JSTL are you using?

    #221346 Reply

    microfilo
    Member

    i am using JTSL 1.1
    both standard.jar and jstl.jar are at \WEB-INF\lib
    the .tlds are ate \WEB-INF\

    the error is that the myEclipse do not find the :forEach implementation

    #221364 Reply

    Riyad Kalla
    Member

    This is infact a web project and not a normal Java project correct? If not, please add web capabilities to enable MyEclipse.

    #221375 Reply

    microfilo
    Member

    This is a Web Projetct… MyEclipse is enabled…

    #221378 Reply

    Riyad Kalla
    Member

    Can you export this project to a zip and send it to support@genuitec.com ATTN Riyad so I can have a look at it? If not, have you tried creating a new Web Project with JSTL libs and copying the offending JSP page over into that new project and seeing if it fixes it? I’m wondering if this is a cache issue… did you try rebuilding the project?

    #221871 Reply

    JoeBlack
    Participant

    please if you found the solution post it I have the same problem

    thanks

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: MyEclipse finds inexistent error em c:forEach Tag

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