You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-dev@portals.apache.org by Gus Kaechelin <Gu...@novell.com> on 2003/12/07 15:49:13 UTC

Including JSPs from included servlet

Hi All.

I've deployed the Portlet TCK in Pluto and I can successfully execute
the PortletDispatcher's IncludeJSPTestPortlet. This test portlet
basically just gets a dispatcher to a JSP file and deos an .include on
it. As shipped, the test passes and all is good. In looking at the test
portlet code, the request dispatcher is obtained by calling the
getNamedDispatcher("IncludedJSP") method. As I said, when the test uses
this method everything works fine. However, I tried changing this test
to use the path to the JSP rather than the name and the portlet will no
longer work. Using the getRequestDispatcher("/IncludedJSP") instead, the
JSP content is not returned. 

Getting the dispatcher by name is fine when the JSP is defined in the
web.xml but that is not a requirement so being able to get it by path is
important too. Is this a bug in Pluto or in the Tomcat servlet
container? Could it be somehitng I'm doing incorrectly?

Any insight would be greatly appreciated.

Thanks.
Gus