Jean-Michel,
Check out www.jsptags.com.
Specifically, you should look at the Jakarta Mailer
Taglib and the ColdJava Copy taglib there.

If you use the Mailer taglib, I think you could put
almost the entire contents of the JSP page inside the
message tag and send it.
Otherwise, you might want to use the copy taglib to
get the body of the message into a string variable and
then possibly pass it to a JMS queue and process the
email asynchronously. This would then enable the page
to be rendered on the browser in the event that the
SMTP server was down or slow.

-Richard
--- Jean-Michel Robinet <[EMAIL PROTECTED]> wrote:
> The application has to return the same information
> to 2 different supports. 
> Here is an example
>       - A user asks for a report
>       - The action class goes to the DB to get the view. 
>       - An actionForward object is returned with the
> right jsp page.
>       - Finally, the page is displayed onto the browser.
> 
> Now I want the exact same page to be displayed onto
> the browser and sent to
> the user by email.
> 
> I am not sure how to get a handle on the html page
> to pass it as the body of
> the email and then return the actionForward object
> as in the normal
> situation.
> 
> Thanks in advance,
> jm
> 
> 
> -----Message d'origine-----
> De�: Michael McGrady
> [mailto:[EMAIL PROTECTED] 
> Envoy�: jeudi 19 f�vrier 2004 17:28
> ��: Struts Users Mailing List
> Objet�: Re: ActionFoward issues
> 
> You mean you want the response to include what?
> 
> At 12:22 AM 2/19/2004, you wrote:
> >Hello,
> >
> >
> >
> >After the action is performed, I need to send the
> html view back to the
> http
> >client and to an email output.
> >
> >I am not sure on how to do it.
> >
> >
> >
> >Can anyone advise a suitable approach & sample
> code?
> >
> >Cheers
> >
> >/jm
> >
> >
> >
> >
> 
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools

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

Reply via email to