如何使用RequestDispatcher.include将jsp:include中的jsp:param翻译为Java

时间:2012-07-06 13:38:17

标签: java jsp servlets include param

我想翻译

<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");

之类的东西

0 个答案:

没有答案