留言板
Forward PortletRequest to Servlet
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:
I have read that you could use the following code to include a Servlet in the same webapplication.
Does anybody know how to do link these two techniques?
Thank you in advance.
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.