struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dale Newfield <d...@newfield.org>
Subject Re: Emailing the contents of a Struts2 view?
Date Thu, 08 Jul 2010 14:53:36 GMT
I'm pretty certain this is not a good idea, but it's a hack that's been 
floating in my head:  If you use sitemesh, you could make a decorator 
that captures the full message, does something with it, then echoes it 
again.

basically:

<c:set scope="request" var="theFullMonty"><decorator:body/></c:set>
<s:property value="%{sendEmail(#request.theFullMonty)}"/>
<s:property value="%{#request.theFullMonty}"/>

-Dale

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message