Hello,
I am having trouble getting my c:param working. I've looked all around the web for a solution. Here's some of the code that I have:
test.jsp
<%@ page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" language="java" errorPage="" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<html>
<head>
</head>
<body>
<c:import url="test2.jsp" >
<c:param name="testVar" value="0" />
</c:import>
</body>
</html>
test2.jsp
<%@ page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" language="java" errorPage="" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<html>
<head>
</head>
<body>
hello
${param.testVar}
</body>
</html>
Here is what is printing.
hello ${param.testVar}
I was expecting "hello 0" to print. Any help would be greatly appreciated.
Thank you