Search

Steps for using JSTL

1. Download jstl.jar from

http://www.java2s.com/Code/Jar/JKL/Downloadjstljar.htm


 

2. Download standard.jar from

http://www.java2s.com/Code/Jar/JKL/Downloadstandardjar.htm


 

3. Extract and add the tlds in WEB-INF/lib folder by copy paste.


 

4. Edit Web.xml    for all such tlds


 

<jsp-config>

<taglib>

    <taglib-uri> /x </taglib-uri>

    <taglib-location> /WEB-INF/lib/c.tld </taglib-location>

</taglib>

</jsp-config>


 

5. Now in the jsp file add


 

<%@ taglib prefix="c" uri="/x" %>


 

6. Start using tags


 

    e.g. <C:out value="output this"> </c:out>

No comments:

Post a Comment