-1

Here's my code:

<%@ page import="java.io.*,java.util.*,java.sql.*"%>
<%@ page import="javax.servlet.http.*,javax.servlet.*" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql"%>

Followed by the html file. jstl-1.2.jar is located in the WEB-INF folder. That is the only explanation I've found anywhere else for why this shouldn't work, so I don't understand why I am still having this problem.

Clinton J
  • 1,975
  • 3
  • 19
  • 31
  • Not a duplicate. I do not have standard.jar. – Clinton J Mar 16 '17 at 19:13
  • Yes, but the problem is the same. The jstl taglibs cannot be found. You need to make sure, that jstl.jar is in your "/WEB-INF/lib" folder, as you can see in Alexei Petrov answer. – Stefan Mar 17 '17 at 07:13

2 Answers2

1

Tags are correct.

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

Where in WEB-INF folder it should be under lib.

enter image description here

Alexei Petrov
  • 331
  • 5
  • 14
0

The version of JSP I was using was not compatible with the version of JSTL.

Clinton J
  • 1,975
  • 3
  • 19
  • 31