• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Struts bridge | setting headers

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
You totally ruined the moon. You're gonna hafta pay for that you know. This tiny ad agrees:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic