I'm noticing that I can't set HTTP response headers from code that's in a
<layout-defiinition> when it's invoked. Debugging a little (I wrote a
little tag class to experiment) I note that I can successfully call
"setHeader" or "setContentType", but they have no apparent effect;
immediately calling "getContentType" on the Response object returns a
different string than passed to "setContentType".

When that code runs, it's using a wrapped version of the ServletResponse.
>From outside the context of a Stripes layout, that test tag works just fine.

Is this a situation that I should expect? Is there any way around that? I
need to set the content type inside a layout because that's where the need
for it is determined (it's deciding between JSON and HTML).

-- 
Turtle, turtle, on the ground,
Pink and shiny, turn around.
------------------------------------------------------------------------------
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to