I need to access a value that was passed using jsp:param from within a jsp:include block:
<jsp:include ...>
<jsp:param...>
</jsp:include>
In EL I can just say ${param.foo} but I'm not sure how to get to it from a scriptlet. Here is what I am doing:
<c:set var="foo" value="${param.foo}"/>
<%
String foo = (String) pageContext.getAttribute("foo");
...use... foo
%>
But there has to be a more direct way to get to it. Any thoughts?
Thanks,
M