I also liked Kris's HttpServletResponseWrapper approach, it is more elegant
and if I have a need to do this I'd probably take that approach. The benefit
of the hack I put up though is it uses nothing new rather than having to
write a "buffered response" object.

Niall

P.S. Its probably not an issue for the majority but
HttpServletResponseWrapper requries Servlet 2.3

----- Original Message ----- 
From: "Will Stranathan" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>; "'Struts Users
Mailing List'" <user@struts.apache.org>
Sent: Wednesday, January 26, 2005 4:32 PM
Subject: Re: OT - Evaulating JSP as internal template?


> In the JSP that you .include - <bean:define id="emailStuff"> - creates
> a string called emailStuff, whose content is everything that gets
> evaluated inside the <bean:define> tag.
>
> Personally, I REALLY like the HttpServletResponseWrapper approach
> better - MUCH more elegant, and looks like less of a hack.
>
> w
>
> On Wed, 26 Jan 2005 11:23:49 -0500
>   "Chaikin, Yaakov Y." <[EMAIL PROTECTED]> wrote:
> >Niall,
> >
> >I am not following this line 100%:
> >
> >// Get the generated email from the request attribute
> >String emailStuff = (String)request.getAttribute("emailStuff");
> >
> >How exactly would this retrieve the generated email? Who stuck the
> >generated
> >email into "emailStuff" attribute on the request??
> >
> >Thanks,
> >Yaakov.
> >
> >
>
> ---------------------------------------------------------------------
> 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]

Reply via email to