Hi all, Does anyone know of a way to construct an HTML formatted email using a struts jsp and a DynaForm? I want our visual designers to be able to updload an email "template", which is just a Struts jsp with the dynabean properties. We would then upload a mapping (something like hql in nature), that would query our database, and fill in the dynabean. The batch job would fire and create the html from the struts jsp, inserting into the body. We would then email that text.
It's pretty awkward to use JSP to render templated text not to a browser; I've settled on using Velocity for that even though we still use JSP for web pages.
You could probably work out a way to call a URL from within your Java code to retrieve a page and use the results as the body of your email, if you really wanted to stick with JSP.
Joe
--
Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "Narrow minds are weapons made for mass destruction" -The Ex
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]