aspose file tools*
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 Spring in Action this week in the Spring 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?

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problems casting HttpServletRequest attribute into a RenderRequest object