Java Method to render a JSP into HTML in a String object
$5-10 USD
Zamknięte
Opublikowano prawie 17 lat temu
$5-10 USD
Płatne przy odbiorze
I am using a mail template system that gets templates as JSP pages placed in /WEB-INF/mailtemplates/ I want to internally parse JSPs as if they were real JSPs in my tomcat but: - Get get them using getResourceAsStream (or any other way) - make JSP engine translate JSP into HTML into a String object. - Send a mail with this HTML. (this part is already finished) What I need is a method with the following proposed signature: public String getMailTemplate([login to view URL] jspPageStream, [login to view URL] request) {} The method must get the JSP from the stream, render it into the HTML and return it as a String. Of course, it must render the JSP as a real JSP, using the apserver JSP engine. It must so replace any tags and EL objects: ${[login to view URL]} -> The name of the user
## Deliverables
.java file with the working code application aerver independent if poosible. If not, it must run on Tomcat 5.
## Platform
Must conform to Servlet 2.4 & JSP 2.0 (Tomcat 5)