Thank you very much. It seems that Velocity is a good solution for my pb. I just have now to replace variables of the template by object values stored in my session within my struts action (because I have to save the result text in the database as well)
Thank you again for this link Amine -----Message d'origine----- De : Wiebe de Jong [mailto:[EMAIL PROTECTED] Envoyé : lundi 19 avril 2004 20:51 À : 'Struts Users Mailing List' Objet : RE: Buffering the ouput of a JSP page within an action Check out Matt Raible's solution to templated-email using Velocity. It is good and I intend to use it for this purpose. http://www.theserverside.com/blogs/showblog.tss?id=SpringVelocityEmail Wiebe -----Original Message----- From: Amine Bousta [mailto:[EMAIL PROTECTED] Sent: Monday, April 19, 2004 3:01 AM To: 'Struts Users Mailing List' Subject: Buffering the ouput of a JSP page within an action Hello, I'm trying to write a struts action that could save in a database and send by e-mail the output of a JSP page. This JSP page needs attributes values that are stored in the session context. In other words, I need ServletContext of the struts action and the JSP page to be the same. I first tried to use the Java "URL" object to perform this action but it creates a separate ServletContext. I didn't find any solution to this issue on the internet. Does anybody can help me?... Amine --------------------------------------------------------------------- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]