I'm sure I had a discussion about this sort of thing with someone on this
list, but for the life of me I can't think who.

You could write your own custom tag which just stores its body's contents in
a bean's property, so you would have something like...

<custom:store name="myBean" property="emailText">
   <html>
    Some String : <bean:write name="myBean">
    </html>
</custom:store>

Then in your action get a RequestDispatcher and do an include

EmailBean emailBean = new EmailBean();
request.setAttribute("myBean", emailBean );
javax.servlet.RequestDispatcher rd =
request.getRequestDispatcher("/myEmailTemplate.jsp");
rd.include(request, response);
String emailText = emailBean.getEmailText();



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

Reply via email to