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 Struts bridge | setting headers 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 "Struts bridge | setting headers" Watch "Struts bridge | setting headers" New topic
Author

Struts bridge | setting headers

Sandy Sagar
Greenhorn

Joined: Sep 15, 2011
Posts: 2
Hi All,

I m using struts bridge with Jetspeed 2 container. I have my normal struts application behaving like portlets. I want to set cache headers in response so that my pages are never cached. But when I do that in my base action, it is not showing my cache tags in response headers. If I access application as normal struts application, I can see cache headers getting set.

I think the reason could be that the response object that I m getting in my Struts Action is of type org.apache.portals.bridges.struts.PortletServletResponseWrapper. I m setting my response headers as



Is there any way where I can set headers in HttpServletResponse that is getting commited? I couldnt find any method similar to doHeaders for my case.

regards,
Sagar Sandy
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts bridge | setting headers
 
Similar Threads
Setting response headers conditionally
Cannot open PDF directly, save works
Page Refresh Problem
download problem
strange scenario in WSAD-webspere