@Override
public void processAction(ActionRequest portletReq, ActionResponse portletResp) throws PortletException, IOException {
portletResp.setRenderParameters(portletReq.getParameterMap());
long tid = Thread.currentThread().getId();
portletReq.setAttribute(THREADID_ATTR, tid);
new StringWriter();
// Multilevel forward / include
portletReq.setAttribute(ATTR_DISPATCH_ACTION, "include");
String targ = SERVLET_PREFIX + "DispatcherTests6_SPEC2_19_FwdThenIncludeServletAction_servlet" + EXTRA_PATH + "?"
+ QUERY_STRING;
portletReq.setAttribute(ATTR_DISPATCH_TARGET, targ);
// Now do the actual dispatch
String target = "/IncluderForwarderServlet" + "?" + QUERY_STRING;
PortletRequestDispatcher rd = portletConfig.getPortletContext().getRequestDispatcher(target);
rd.forward(portletReq, portletResp);
}
DispatcherTests6_SPEC2_19_FwdThenIncludeServletAction.java 文件源码
java
阅读 14
收藏 0
点赞 0
评论 0
项目:portals-pluto
作者:
评论列表
文章目录