0

I want to translate

<jsp:include page="xxx.jsp">
  <jsp:param name="x" value="0"/>
</jsp:include>

to Java, like:

RequestDispatcher rd = request.getRequestDispatcher("xxx.jsp");
rd.include(request, response);

How can I put the param x = 0 ? the request doesn't have a setParameter (at least not in pre Servlet 3.0)

Something like request.getRequestDispatcher("xxx.jsp" + "?x=0"); ?

Cosmin Cosmin
  • 1,526
  • 1
  • 16
  • 34

0 Answers0