• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting "response" object in JSP of type "CacheProxyResponse" ....

 
Pras Tiwari
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I am facing weired problem in my IBM Portlet Spec based project. I am using WPS5.1 to run my portlet project.
In JSP of my portlet application I am getting "response" object of type "com.ibm.ws.cache.servlet.CacheProxyResponse" , while in my jsp I am expecting "response" object of type "com.ibm.wps.pe.pc.legacy.impl.PortletResponseImpl". So when I am executing following code in my jsp it gives me exception:-
<%=((PortletResponse)response).encodeNamespace("onFormSubmit")%>

Can you please tell me how I can get "response" object of type "PortletResponse" in my jsp?

Many thanks in advance.

Pras
 
Lancer zhang
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I encountered the same problem, anyone know why?
 
Liviu Grigorescu
Greenhorn
Posts: 2
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A little bit late, but it may be helpfull to other.
This seems to be caused by DynaCache within WAS Console.
To enable/disable it, go to Console->Servers->Application servers->app_srv->Web container settings->Web container->Enable servlet caching

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic