留言板

Forward PortletRequest to Servlet

Philipp Rusch,修改在12 年前。

Forward PortletRequest to Servlet

New Member 帖子: 12 加入日期: 11-7-4 最近的帖子
Hi all,

I am trying to figure out how it is possible to include a Servlet from another webapplication into a Portlet. I have already enabled crossContext in the JBoss Tomcat. Normally you can use the following statement:
ServletContext ctx = this.getServletContext().getContext("/test");
to get the context of the second application.

I have read that you could use the following code to include a Servlet in the same webapplication.

PortletContext oContext = getPortletContext();
PortletRequestDispatcher oDispatcher = oContext.getRequestDispatcher("/test/Login");
oDispatcher.include(renderRequest, renderResponse);


Does anybody know how to do link these two techniques?

Thank you in advance.