You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Joakim Verona <jo...@verona.se> on 2000/12/05 01:34:23 UTC

is it possible to dynamically create and interpret JSP?

hello,

is it possible to dynamically generate and interpret jsp?
the purpose is to reuse custom tag libraries.

the jsp code would mainly be retreived from a database.

is it at all possible, or should i rather look at some other template mechanism?


-- 
Joakim Verona
joakim@verona.se
http://www.verona.se/

Re: is it possible to dynamically create and interpret JSP?

Posted by Joakim Verona <jo...@verona.se>.
Ok, this seems possible. My initial impression is that this would be cumbersome,
especially the first time you view a page with the tags, but on the other hand,
if the pages are long-lived, like in my case, it wouldnt be bad at all. hmm.
it is growing on me. 

Thanks! 

CPC Livelink Admin wrote:
> 
> Sure it's possible - depending on your JVM's security manager.  If you have
> access to write to your document root directory, then you can write a file
> to that directory and then redirect/forward to it.  It will then be compiled
> and executed. You will probably want to create a directory in the webapp for
> the session to keep from stomping on other sessions files. You would also
> want to listen for the session ending event(s) to clean up the files after
> the session is over.
> 
> -----Original Message-----
> From: joakim@d1o73.telia.com [mailto:joakim@d1o73.telia.com]On Behalf Of
> Joakim Verona
> Sent: Monday, December 04, 2000 07:34 PM
> To: tomcat-user@jakarta.apache.org
> Subject: is it possible to dynamically create and interpret JSP?
> 
> hello,
> 
> is it possible to dynamically generate and interpret jsp?
> the purpose is to reuse custom tag libraries.
> 
> the jsp code would mainly be retreived from a database.
> 
> is it at all possible, or should i rather look at some other template
> mechanism?
> 
> --
> Joakim Verona
> joakim@verona.se
> http://www.verona.se/

-- 
Joakim Verona
joakim@verona.se
http://www.verona.se/

RE: is it possible to dynamically create and interpret JSP?

Posted by CPC Livelink Admin <cp...@fitzpatrick.cc>.
Sure it's possible - depending on your JVM's security manager.  If you have
access to write to your document root directory, then you can write a file
to that directory and then redirect/forward to it.  It will then be compiled
and executed. You will probably want to create a directory in the webapp for
the session to keep from stomping on other sessions files. You would also
want to listen for the session ending event(s) to clean up the files after
the session is over.

-----Original Message-----
From: joakim@d1o73.telia.com [mailto:joakim@d1o73.telia.com]On Behalf Of
Joakim Verona
Sent: Monday, December 04, 2000 07:34 PM
To: tomcat-user@jakarta.apache.org
Subject: is it possible to dynamically create and interpret JSP?


hello,

is it possible to dynamically generate and interpret jsp?
the purpose is to reuse custom tag libraries.

the jsp code would mainly be retreived from a database.

is it at all possible, or should i rather look at some other template
mechanism?


--
Joakim Verona
joakim@verona.se
http://www.verona.se/