You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ben Short <be...@benshort.co.uk> on 2009/10/21 14:21:34 UTC

Using jasper

Hi,

I would like to use the Jasper jsp compiler to compile jsp's that I
read from a database/jackrabbit/inputstream can anyone give me any
pointers?

Regards

Ben Short

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Using jasper

Posted by Ben Short <be...@benshort.co.uk>.
Sounds interesting I shall investigate.

Many Thanks.

2009/10/21 Mark Thomas <ma...@apache.org>:
> Ben Short wrote:
>> Hi Mark,
>>
>> Id like to store my jsp files in a database. When a request comes into
>> my web app I want to look up the jsp file based on the requested url,
>> compile it, instantiate it, cast it to a servlet and call the service
>> method.
>>
>> My application will be spring based.
>>
>> Now I come to think about it when I get the request I could save the
>> jsp file to WEB-INF/jsp and then let tomcat handle the compilation if
>> needed. I'd have to check that the lastmod time of the db version is
>> greater than the file version before saving it to WEB-INF/jsp.
>
> Just implement a DirContext that is backed by your database. Tomcat will take
> care of the rest.
>
> Mark
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Using jasper

Posted by Mark Thomas <ma...@apache.org>.
Ben Short wrote:
> Hi Mark,
> 
> Id like to store my jsp files in a database. When a request comes into
> my web app I want to look up the jsp file based on the requested url,
> compile it, instantiate it, cast it to a servlet and call the service
> method.
> 
> My application will be spring based.
> 
> Now I come to think about it when I get the request I could save the
> jsp file to WEB-INF/jsp and then let tomcat handle the compilation if
> needed. I'd have to check that the lastmod time of the db version is
> greater than the file version before saving it to WEB-INF/jsp.

Just implement a DirContext that is backed by your database. Tomcat will take
care of the rest.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Using jasper

Posted by Ben Short <be...@benshort.co.uk>.
Hi Mark,

Id like to store my jsp files in a database. When a request comes into
my web app I want to look up the jsp file based on the requested url,
compile it, instantiate it, cast it to a servlet and call the service
method.

My application will be spring based.

Now I come to think about it when I get the request I could save the
jsp file to WEB-INF/jsp and then let tomcat handle the compilation if
needed. I'd have to check that the lastmod time of the db version is
greater than the file version before saving it to WEB-INF/jsp.

Regards

Ben Short

2009/10/21 Mark Thomas <ma...@apache.org>:
> Ben Short wrote:
>> Hi,
>>
>> I would like to use the Jasper jsp compiler to compile jsp's that I
>> read from a database/jackrabbit/inputstream can anyone give me any
>> pointers?
>
> Can you provide a little more context? Eg is thsi standalone or as part of a
> running Tomcat instance?
>
> Mark
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Using jasper

Posted by Mark Thomas <ma...@apache.org>.
Ben Short wrote:
> Hi,
> 
> I would like to use the Jasper jsp compiler to compile jsp's that I
> read from a database/jackrabbit/inputstream can anyone give me any
> pointers?

Can you provide a little more context? Eg is thsi standalone or as part of a
running Tomcat instance?

Mark


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org