When using JSTL in JSP, getting an exception

后端 未结 3 1740
青春惊慌失措
青春惊慌失措 2021-01-16 07:56

Getting following exception when I have included:

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

Exception:

3条回答
  •  渐次进展
    2021-01-16 08:13

    1: Included JSTL jar file WEB-INF/lib folder

    Fine. That ought to be sufficient.

    2: Included Classpath in Run Configuration (using Eclipse)
    3: Included in Build path too.

    Don't do. Eclipse does that automatically on 1. You need to undo all manual changes, they might make things worse.

    I have included JSTL.jar(Version 1.2) and JSTL Standard.jar

    Get rid of standard.jar. JSTL 1.2 consists of only one JAR file. The standard.jar might want to locate classes which doesn't exist in JSTL 1.2 anymore, resulting in this kind of abstract/dependency errors.

    See also:

    • Our JSTL wiki page

提交回复
热议问题