Joel Joel - 21 days ago 5
Java Question

JSTL in IntelliJ gives errors in JSP

I'm playing with Google App Engine in IntelliJ. I'm trying to use JSTL tags in my JSPs. I've tried two different URIs I found on the internet, and both of them give me errors:

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


and

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


It reds out the URL and says it cannot resolve taglib. I've tried dropping different parts of the URL to see if Ctrl-Space gives me any autocomplete love, but no luck.

Any ideas what I need to do to make this work?

Answer

Make sure that JSTL library jars are added to the module dependencies.