title: How can I get a meaning of a jsp variable in java code on the same page?
body: <p>If I am passing a String into an included jsp file:</p>
  
  <pre><code>        &lt;jsp:include page="groop_checkbox_with_header.jspf"&gt;
              &lt;jsp:param name="mapName" value="investQuestionsExperience"/&gt;
          &lt;/jsp:include&gt;
  </code></pre>
  
  <p>I can use it as <code>${param.mapName}</code> in html and jsp code. But how can I use that param.mapName in the java code in that included file in <code>&lt;%..%&gt;</code> braces? For I can't simply write:</p>
  
  <pre><code>&lt;% String mapName = param.mapName; %&gt;
  </code></pre>
  
  <p>the variable "param" is marked as unknown.</p>
  
  <p>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 <code>${}</code>. But how can I make the backward operation?</p>