[jira] Created: (PLUTO-582) forwarding to jsp in action phase causes error if <portlet:defineObjects/> is used in jsp

View: New views
1 Messages — Rating Filter:   Alert me  

[jira] Created: (PLUTO-582) forwarding to jsp in action phase causes error if <portlet:defineObjects/> is used in jsp

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

forwarding to jsp in action phase causes error if  <portlet:defineObjects/> is used in jsp
------------------------------------------------------------------------------------------

                 Key: PLUTO-582
                 URL: https://issues.apache.org/jira/browse/PLUTO-582
             Project: Pluto
          Issue Type: Bug
    Affects Versions: 2.0.0
         Environment: windows, JBOSS 4.2.2 GA
            Reporter: Hubert Felber


in the action phase I do a

getPortletContext().getRequestDispatcher("test.jsp").forward(request,response);

in test.jsp I defined
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
<portlet:defineObjects/>

The compiled jsp then contains
      renderRequest = (javax.portlet.RenderRequest) _jspx_page_context.findAttribute("renderRequest");

which causes a

javax.servlet.ServletException: javax.portlet.PortletException: java.lang.ClassCastException: org.apache.pluto.container.impl.ActionRequestImpl cannot be cast to javax.portlet.RenderRequest
        org.apache.pluto.driver.PortalDriverServlet.doGet(PortalDriverServlet.java:141)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.