facebook

[Closed] Unknown Tag annotation using jstl

💡
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 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #248018 Reply

    sgadkari
    Member

    – System Setup ——————————-
    Operating System and version: Windows XP Pro SP2
    Eclipse version: 3.1.2
    Eclipse build id: M20060118-1600
    Fresh Eclipse install (y/n): Y
    If not, was it upgraded to its current version using the update manager?
    Other installed external plugins: “Web Standard Tools – Web Core”, MyEclipse
    Number of plugins in the <eclipse>/plugins directory that begin with org.eclipse.pde.*: 4
    MyEclipse version: 4.1.1
    Eclipse JDK version:
    Application Server JDK version:
    Are there any exceptions in the Eclipse log file?

    If this is a DB related question please answer the following:

    RDBMS vendor and version:
    JDBC driver vendor and version, and access type (thin, type-2, etc):
    Connection URL:
    Eclipse error logs related to com.genuitec.eclipse.sqlexplorer packages:

    – Message Body ——————————-

    I included the following on a simple jsp page
    <%@ taglib prefix=”c” uri=”http://java.sun.com/jstl/core&#8221; %>

    standard.jar and jstl.jar are in the WEB-INF/lib folder
    the tlds are in the WEB-INF folder.

    jsp-api.jar, jstl.jar and standard.jar have been added to the project build path.

    the following code is in the jsp file:
    <c:if test=”${true}” >
    <label>You have 2 rows</label>
    </c:if>
    Problem:
    the <c:if tags are underlined and say “Unknown Tag”

    Please Help,

    Thanks

    #248026

    Riyad Kalla
    Member

    The TLDs are actually in the standard.jar file, you need to add that to your build path. Also the URIs you are using are for JSTL 1.0, so if you add standard and it’s STILL not working, expand the standard.jar file and go into the META-INF folder and open the c.tld file, look near the top for the <uri></uri> section and use that URI.

    TIP: Your TLDs when using default URIs are resolved from the JARs, so you don’t need them in WEB-INF.

    #248038

    sgadkari
    Member

    The taglib is now
    <%@ taglib prefix=”c” uri=”http://java.sun.com/jsp/jstl/core&#8221; %>

    the standard.jar file has been added to the project.

    the <c:if tags still have the same error.

    #248043

    Riyad Kalla
    Member

    Try and restart MyEclipse then rebuild your project.

    Also do you have any <taglib> entries in your web.xml file? These will override default URIs.

    #248052

    sgadkari
    Member

    I have already removed references to taglib from web.xml.

    Restarting eclipse and rebuilding did not help.

    #248054

    Riyad Kalla
    Member

    I need to clarify is this actually a web project or a Java project? Open project properties, go to MyEclipse-Web, what are your 2 values in the text fields there?

    If this is not a web project, you can Add Web Project Capabilities to it from the MYEclipse sub-menu off of the root of your project (right-click).

    #248063

    sgadkari
    Member

    That solved the problem.

    Thank you for your help.

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: [Closed] Unknown Tag annotation using jstl

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