Nathan Coast wrote:

Hi,

Is there any way to generate content that isn't written to the ServletResponse? I'd like to use jsp / struts to generate html emails.

something like this:
1) user clicks 'generate email' button.
2) struts action sets up parameters and identifies recipients.
3) delegate to a jsp to create the html email content.
4) trap the content (don't return to the user) and send as an email.
5) return a message to user confirming email has been sent.

is this possible without having to re-invent a servlet container :)


I have used Jelly (http://jakarta.apache.org/commons/jelly/) for this purpose. You can use JSTL/EL so it looks like a JSP page. Look at using Jelly Embedded (http://jakarta.apache.org/commons/jelly/tutorial.html#embeddingjelly)

thanks
Nathan




-- Jason Lea



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to