javaspring-mvctaglib

URI for using Java Spring Tags


Inorder to use Spring Form Tags in JSP file following is taglib element I added :-

    <%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>

And I used this reference for the same.

However, Eclipse is not able to find the Tag Library Desciptor file. What is the correct URI?


Solution

  • The uri is correct.

    Make sure:

    If its JSPX the notation would look more like:

    <html xmlns:jsp="http://java.sun.com/JSP/Page"
          xmlns:c="http://java.sun.com/jsp/jstl/core"
          xmlns:tiles="http://tiles.apache.org/tags-tiles"
          xmlns:form="http://www.springframework.org/tags/form"
          xmlns:spring="http://www.springframework.org/tags"
          xmlns:util="urn:jsptagdir:/WEB-INF/tags/util">