title: Using OGNL to get parameters
body: <p>In one JSP page, I am including another JSP page and passing a parameter:</p>
  
  <pre><code>&lt;jsp:include page="/WEB-INF/somepage.jsp" flush="true"&gt;
      &lt;jsp:param name="location" value="menu"/&gt;
  &lt;/jsp:include&gt;
  </code></pre>
  
  <p>In the included page, I can access the parameter using EL. This works:</p>
  
  <pre><code>${param.location}
  </code></pre>
  
  <p>But I cannot use the OGNL equivalent to get the same parameter. None of these work:</p>
  
  <pre><code>#parameters.location
  #parameters['location']
  %{#parameters.location}
  %{#parameters['location']}
  </code></pre>
  
  <p>I know there is a work-around using <code>&lt;s:set var="location"&gt;${param.location}&lt;/s:set&gt;</code> or <code>&lt;c:set var="location"&gt;${param.location}&lt;/c:set&gt;</code> and then using OGNL: <code>#location</code> but I want to avoid that. I don't want to use scriptlets either.</p>