If you don't want to implment a PhaseListener or a javax.servlet.Filter for setting response headers, think about using MyFaces Tiles-Support. You'd just need to define a scriptlet in one (maybe a few) JSP templates.

Thomas


On 9/15/05, Ken Weiner <[EMAIL PROTECTED]> wrote:
What is the best way to set headers on the HttpResponse to control things such as caching directives?

For example:
response.setHeader("Cache-Control", "no-cache");

Would I need to implement a PhaseListener? Is this done through config parameters of some kind?  Should I just include a scriptlet in each JSP page?

-Ken

Reply via email to