facebook

error in jsps that use jstl

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #203544 Reply

    I’ve finally gotten my rather large web project imported into MyEclipse. Everything has been going well until I got to my jsps

    I’m getting the following error message in the Jsp editor for pages which reference jstl tag libs

    Error in included file ProductionPlanning/WebRoot/header.jspf: ERROR: unexpected unmapped URI: http://java.sun.com/jsp/jstl/fmt
    inventory.jsp ProductionPlanning/WebRoot line 4

    I’ve included the jstl.jar and standard.jar files as libraries for the projects build path.

    Is there something else that needs to be done to make this work?

    When compiled outside eclipse and deployed on tomcat 5.0 this project runs successfully.

    Roy Wells

    #203550 Reply

    Scott Anderson
    Participant

    Roy,

    Did you specify the taglib location in your web.xml so the editor knows where to find the uri? Something like:

    
      <taglib>  
        <taglib-uri>http://java.sun.com/jstl/fmt</taglib-uri>
        <taglib-location>/WEB-INF/fmt.tld</taglib-location>
      </taglib>
    

    And, before you ask, yes it’s required by the spec and just because Tomcat doesn’t enforce that doesn’t make it right. 🙂

    #203584 Reply

    Scott,

    Again you impress me with your accurate and rapid responses.

    I did have the taglib declaration in the web.xml file, however the uri did not exactly correspond with the one referenced in the JSP’s. Once corrected everything compiled fine.

    Thanks again. You guys are doing an excellent job supporting your product.

    Roy Wells

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: error in jsps that use jstl

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