Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: How to use JSTL 1.1 in NetBeans 7?

  1. #1
    Junior Member
    Join Date
    Jun 2011
    Posts
    26
    My Mood
    Fine
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Question How to use JSTL 1.1 in NetBeans 7?

    Hi!

    I've written a JSP which uses JSTL's core library.
    The directive
    <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    wouldn't compile correctly and reported that it could not resolve the uri in web.xml or any jar files until I added JSTL 1.1 in my library from the right click menu options. Now there are no compilation errors/warnings but Tomcat is giving this error on opening the JSP:
    org.apache.jasper.JasperException: The absolute uri: JavaServer Pages Standard Tag Library cannot be resolved in either web.xml or the jar files deployed with this application
    org.apache.jasper.compiler.DefaultErrorHandler.jsp Error(DefaultErrorHandler.java:51)
    org.apache.jasper.compiler.ErrorDispatcher.dispatc h(ErrorDispatcher.java:409)
    org.apache.jasper.compiler.ErrorDispatcher.jspErro r(ErrorDispatcher.java:116)
    org.apache.jasper.compiler.TagLibraryInfoImpl.gene rateTLDLocation(TagLibraryInfoImpl.java:315)
    org.apache.jasper.compiler.TagLibraryInfoImpl.<ini t>(TagLibraryInfoImpl.java:148)
    org.apache.jasper.compiler.Parser.parseTaglibDirec tive(Parser.java:386)
    org.apache.jasper.compiler.Parser.parseDirective(P arser.java:449)
    org.apache.jasper.compiler.Parser.parseElements(Pa rser.java:1396)
    org.apache.jasper.compiler.Parser.parse(Parser.jav a:130)
    org.apache.jasper.compiler.ParserController.doPars e(ParserController.java:255)
    org.apache.jasper.compiler.ParserController.parse( ParserController.java:103)
    org.apache.jasper.compiler.Compiler.generateJava(C ompiler.java:185)
    org.apache.jasper.compiler.Compiler.compile(Compil er.java:347)
    org.apache.jasper.compiler.Compiler.compile(Compil er.java:327)
    org.apache.jasper.compiler.Compiler.compile(Compil er.java:314)
    org.apache.jasper.JspCompilationContext.compile(Js pCompilationContext.java:592)
    org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:317)
    org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:313)
    org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:260)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:717)
    What is the right way of including JSTL in the library? Do I have to create a tld file manually or import something?


  2. #2
    Junior Member
    Join Date
    Jun 2011
    Posts
    26
    My Mood
    Fine
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default Re: How to use JSTL 1.1 in NetBeans 7?

    Nevermind, it's working after restart.

Similar Threads

  1. Netbeans 6.8
    By selmaky in forum Java IDEs
    Replies: 1
    Last Post: May 14th, 2011, 03:08 PM
  2. New to NetBeans
    By _lithium_ in forum Java IDEs
    Replies: 0
    Last Post: March 1st, 2011, 08:48 PM
  3. applications in netbeans
    By Suni in forum Java IDEs
    Replies: 2
    Last Post: January 3rd, 2011, 02:25 PM
  4. help needed with netbeans
    By jalkin in forum Java IDEs
    Replies: 1
    Last Post: May 4th, 2010, 09:08 PM
  5. Netbeans help
    By [Kyle] in forum Java IDEs
    Replies: 2
    Last Post: September 20th, 2009, 06:32 PM

Tags for this Thread