Re: How do you set response headers in decorators?
Joe Walnes <[email protected]>
| Newsgroups | gmane.comp.web.sitemesh.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Josh, Some questions that will make it easier to track down this issue: * What version of SiteMesh are you using? * What Servlet engine are you using (including version)? It would be ideal if you could provide us enough code to reproduce the problem, ideally a stripped down web-app that contains nothing but the bug. Something you may want to ensure is that the response headers are the first thing that the decorator sets (i.e. before all content). cheers -Joe On Fri, 18 Mar 2005 18:02:39 CST, Josh Kitterman <[email protected]> wrote: > I would like to set response headers in a decorator to disallow caching of the files. This page (http://www.opensymphony.com/sitemesh/decorators.html) shows including a cache.jsp file to control caching. When I do the same thing, the headers are not set on decorated content. When I view the decorator file by itself, I do see the headers. > > The following bug report/fix recognizes the problem (http://jira.opensymphony.com/browse/SIM-17?page=all), but says it is now fixed. In the fix it mentions specifying the headers as decorator init params. I still can't seem to get it to work. Are the init params actually filter init params, or do they go in sitemesh.xml or decorators.xml (or somewhere else)? > > I appreciate any help in resolving this issue. > > --------------------------------------------------------------------- > Posted via Jive Forums > http://forums.opensymphony.com/thread.jspa?threadID=856&messageID=2926#2926 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]