0

我要翻译

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

到 Java,例如:

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

我怎么能把param x = 0?请求没有 setParameter(至少在 Servlet 3.0 之前没有)

request.getRequestDispatcher("xxx.jsp" + "?x=0");什么?

4

0 回答 0