I have a jsp:
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
hello
<c:import url="/scripts/script.js" var="under" context="/"/>
<c:out value="${under}"/>
bye
"script.js" refers to an external file. However, when I add that statement, the import always grabs the file that I am working on instead. I get the following output:
"hello <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> hello bye bye"
Why is this? What can I do to point to the correct jsp?