D
Dieter Salath?
Hi,
Is it possible to have a servlet which generates a jsp page, which
will then be compiled by the jsp compiler and executed?
We have a database which contains jsp pages, so it would be very easy
to load and construct them in the servlet, and after the servlet has
done the job, the jsp does the rest.
Code example:
public void doGet(...) {
// generate the jsp page
String jspPage = generateJspPage();
// write the jsp page to the output stream
response.getOutputStream().write(jspPage);
}
// now, the jsp page should be compiled and executed by the webserver
(Tomcat)
Any help is greatly appreciated
Dieter
Is it possible to have a servlet which generates a jsp page, which
will then be compiled by the jsp compiler and executed?
We have a database which contains jsp pages, so it would be very easy
to load and construct them in the servlet, and after the servlet has
done the job, the jsp does the rest.
Code example:
public void doGet(...) {
// generate the jsp page
String jspPage = generateJspPage();
// write the jsp page to the output stream
response.getOutputStream().write(jspPage);
}
// now, the jsp page should be compiled and executed by the webserver
(Tomcat)
Any help is greatly appreciated
Dieter