日期:2014-05-17  浏览次数:20652 次

<struts2>参数传递
乍样在Action中传递一个参数到一个jsp页面的 <a> 中然后在传递到另一个jsp页面的<hidden>中


------解决方案--------------------
Action中:
String taskTypeId = request.getParameter("taskTypeId").toString();
. . .
forward = actionContext.getMapping().findForward("show");

Jsp中:
<input id="taskTypeId" name="taskTypeId" type="hidden" value="<%=(String)request.getAttribute("taskTypeId")%>"/>