简体   繁体   中英

Does IBM Websphere 5.1.2 support jstl

Guys i have included jstl and standard.jar in lib directory under classpath. It says absolute uri http://java.sun.com/jstl is not found either in web.xml or in application. please let me know how to configure in websphere 5.1.2

The right taglib URI depends on the JSTL version. Assuming you're using JSTL 1.1 (which would be the best choice for WAS 5.1.2 which runs Servlet 2.3), you need to specify taglib URI's as per this document . So, JSTL core should be specified as follows:

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

(note the extra /jsp path; this is added in JSTL 1.1 as opposed to JSTL 1.0)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM