On 08-07-2008 at 20:06, Freddy Daoud wrote:
[...]
> If you're still with me, it all boils down to: how to elegantly attach
> some sort of additional data (in my case, a boolean flag) to a regular
> Stripes Resolution?

The closest is your idea of adding a response header. However, as you
indicated, doing so and then returning a ForwardResolution doesn't work.

While searching a bit, I found that you cannot do a forward as soon as the
response is committed. This implies, that the headers you set before the
forward are ignored. It also makes sense: the resource you forward to now
generates the response for the request; not the resource doing the forward
(any state change it may have done is effectively an intended side effect).
This also explains your findings.

But what happens when you set the header in your forwarded resource (I assume
it's a JSP page)? I suspect you'll have more luck then (haven't tested it) as
this resource now determines the response.


Oscar

-- 
   ,-_   Insanity is doing the same thing over and over again
  /() )  while expecting a different result.
 (__ (
=/  ()

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to