[ 
http://issues.apache.org/jira/browse/JS2-601?page=comments#action_12442023 ] 
            
george talusan commented on JS2-601:
------------------------------------

Some more information:

1.  My HREFs call back into the Portlet using createActionUrl
2.  The Portlet's processAction method does some work and stuffs request 
parameters into session so other Portlets are aware of what's happening.
3.  The Portlet's doView method gets called and a PortletRequestDispatcher is 
created that references the HREF.  This HREF is within the same webapp and is a 
servlet.
4.  PortletRequestDispatcher.include is called.
5.  Servlet gets control and a new RequestDispatcher is created from the 
HttpServletRequest.
6.  RequestDispatcher is non-null and a call to its forward method is used to 
render a JSP.
7.  An exception is thrown from Catalina saying path is null because of the 
reasons explained in the description.

> ServletRequestImpl returns null when used inside of a Servlet.
> --------------------------------------------------------------
>
>                 Key: JS2-601
>                 URL: http://issues.apache.org/jira/browse/JS2-601
>             Project: Jetspeed 2
>          Issue Type: Bug
>          Components: Components Core
>    Affects Versions: 2.0-FINAL
>         Environment: Tomcat 5.5.20 with Jetspeed 2.0 on Windows.
>            Reporter: george talusan
>
> I've written a Portlet that has several HREFs that point to servlets.  One of 
> these servlets does a forward to a JSP page.  
> Turning on logging in catalina's JSPServlet shows ServletPath, PathInfo, 
> RealPath, RequestURI, QueryString are all null.  The forward subsequently 
> fails since getPathInfo and friends are returning null.
> While inside my servlet's doGet/doPost, If I cast the HttpServletRequest to 
> Jetspeed-2's ServletRequestImpl and call setPortletDispatcherIncluded(false) 
> then the forward will work.
> I expect the forward to work in Tomcat regardless of whether the servlet was 
> called via a portlet or other.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to