tomcat - Can plain Java object utilize/capture/include JSP output? -
i need send emails formatted html. seems html email counts "view" element makes sense render using jsp.
however, emailer task written in pure java. how can jsp output java?
i.e. envision:
emailbody.jsp:
<c:out var="invoicebody"> <lots of html> ${invoice.price} etc... </c:out>
emailsend.java:
setup db connection setup email call emailbody.jsp email.body = invoicebody email.send etc...
something that...
right scraping through http server seems wrong.
what best way format html emails? using tomcat 7, servlet 3.0...
thanks
you can use scripting language mvel populate html file want send out email.
check mvel 2.0 templating guide
i hope puts in right direction.
there other alternatives szymon biliĆski pointed out.listing them below
Comments
Post a Comment