If I am passing a String into an included jsp file:
<jsp:include page="groop_checkbox_with_header.jspf">
<jsp:param name="mapName" value="investQuestionsExperience"/>
</jsp:include>
I can use it as ${param.mapName}
in html and jsp code. But how can I use that param.mapName in the java code in that included file in <%..%>
braces? For I can't simply write:
<% String mapName = param.mapName; %>
the variable "param" is marked as unknown.
There are many questions that looks similar, but all of them are about calling through creation a new request. And here we have the jsp variable and java code awaiting for it on the same page. I can look at java expression value in the jsp code by ${}
. But how can I make the backward operation?