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]
# 1
Do you also plan to store your servlet class files in the database? A JSP is just a convenient way of writing a Servlet and the JSP ultimately gets compiled into a class file. It really doesn't make sense to store them in a database.
tolmanka at 2007-7-7 22:15:28 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 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.

%

duffymoa at 2007-7-7 22:15:28 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...