Need hint to run jsp from repository on tomcat

View: New views
3 Messages — Rating Filter:   Alert me  

Need hint to run jsp from repository on tomcat

by Aleksei Lukin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi, All!

I need to save jsp pages in JackRabbit repository and then feed it to tomcat 6 to process.
I use model 2 deploymet, my tomcat loads repository available for all applications deployed.
 
Could please anyone point me to docs or code or tell some hints how to do that?

Tnks.
--
SY, Alex Lukin
RIPE NIC HDL: LEXA1-RIPE

Re: Need hint to run jsp from repository on tomcat

by Torgeir Veimo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On 24 Jul 2008, at 19:09, Aleksei Lukin wrote:

> Could please anyone point me to docs or code or tell some hints how  
> to do that?


This is quite hard. I'd recommend using a framework that allows this,  
eg sling. These frameworks work by calling the jsp compiler directly,  
not by using the servlet containers built in mechanisms.

Alternatively, if you can use something like freemarker or velocity  
instead of JSPs this would be quite easy to do.

--
Torgeir Veimo
torgeir@...





Re: Need hint to run jsp from repository on tomcat

by Aleksei Lukin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thursday 24 July 2008 12:15:35 Torgeir Veimo написав:

> On 24 Jul 2008, at 19:09, Aleksei Lukin wrote:
> > Could please anyone point me to docs or code or tell some hints how
> > to do that?
>
> This is quite hard. I'd recommend using a framework that allows this,
> eg sling. These frameworks work by calling the jsp compiler directly,
> not by using the servlet containers built in mechanisms.
>
> Alternatively, if you can use something like freemarker or velocity
> instead of JSPs this would be quite easy to do.

Simpliest is to get file from repository and write to disk somewhere.
Mounting jackrabbit subtree as webdav resource and symlinking needed dir to my app..   but it seems guite ugly.
Optimal is hack to tomcat code that allows JSP from JCR mapped to some URL path.

I belive there should be simple way to fool tomcat and feed  JSP to it from Jackrabbit.
Anyway  idea of placing JSP into repository allows so much flexibility I just can't refuse of.

--
SY, Alex Lukin
RIPE NIC HDL: LEXA1-RIPE
LightInTheBox - Buy quality products at wholesale price!