title: How can I translate jsp:param within jsp:include to Java with RequestDispatcher.include
body: <p>I want to translate</p>
  
  <pre><code>&lt;jsp:include page="xxx.jsp"&gt;
    &lt;jsp:param name="x" value="0"/&gt;
  &lt;/jsp:include&gt;
  </code></pre>
  
  <p>to Java, like:</p>
  
  <pre><code>RequestDispatcher rd = request.getRequestDispatcher("xxx.jsp");
  rd.include(request, response);
  </code></pre>
  
  <p>How can I put the <code>param x = 0</code> ? the request doesn't have a setParameter (at least not in pre Servlet 3.0)</p>
  
  <p>Something like <code>request.getRequestDispatcher("xxx.jsp" + "?x=0");</code> ?</p>