Keep JSP pages in DB
Hi,
What I want to achive is to store some JSP pages in the DB and when a request to a servlet is made get the content of the pages from DB and interpret them as they are regular JSP pages.
The solution I have found is to get the content from DB, write a temp JSP file, and forward the request to this JSP file (in this case the JSP container treat the file as I want), however I don't want to write this file on the file system. Is there a way to achive that? The servlet container that I'm using is Tomcat
-Darius
[543 byte] By [
dariusrusa] at [2007-11-26 13:34:12]

# 2
> Hi,
>
> What I want to achive is to store some JSP pages in
> the DB and when a request to a servlet is made get
> the content of the pages from DB and interpret them
> as they are regular JSP pages.
Terrible idea. A complete misunderstanding of how JSPs work.
> The solution I have found is to get the content from
> DB, write a temp JSP file, and forward the request to
> this JSP file (in this case the JSP container treat
> the file as I want), however I don't want to write
> this file on the file system. Is there a way to
> achive that? The servlet container that I'm using is
> Tomcat
Totally nuts. Don't do it.
%