This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Portals and Portlets and the fly likes Problems casting HttpServletRequest attribute into a RenderRequest object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "Problems casting HttpServletRequest attribute into a RenderRequest object" Watch "Problems casting HttpServletRequest attribute into a RenderRequest object" New topic
Author

Problems casting HttpServletRequest attribute into a RenderRequest object

John Zwick
Ranch Hand

Joined: Mar 02, 2009
Posts: 34
The following line of code seems to be causing the exception:
java.lang.ClassCastException: com.ibm.ws.portletcontainer.core.impl.ActionRequestImpl incompatible with javax.portlet.RenderRequest



Does anyone know why I cannot do this cast? Also, if this is not the correct way... how can I retrieve the RenderRequest object from a HttpServletRequest object so I can access the portlet preferences values?

 
 
subject: Problems casting HttpServletRequest attribute into a RenderRequest object
 
Similar Threads
different requests for what purpose?
JSR 168 ObjectID
how to call servlet class from an action class?
Request Object
About ProcessAction