• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problems casting HttpServletRequest attribute into a RenderRequest object

 
John Zwick
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!