We also do this with Velocity (we use Spring MVC rather than JSP) and point our 
Velocity ResourceLoader to somewhere else on the filesystem (away from any 
Apache document root so they aren't accessible). This brings benefits of being 
able to do hot-deploy of content/templates for urgent copy changes, should we 
need to, ability to work with things like AlFresco, and not having any logic 
other than minimal presentational logic in the view layer.

-----Original Message-----
From: Ralph Goers [mailto:[EMAIL PROTECTED]
Sent: 18 February 2008 17:37
To: Tomcat Users List
Subject: Re: Mapping JSP's to outside of the war or expanded folder


We have a similar need. But doing this with JSPs is very dangerous since 
they can have java code within them. Instead, using a templating 
language like Velocity would seem to be a mucn better approach. 

emerson cargnin wrote:
> The policy of our company is to deploy the jsp's separated from the
> war file, to allow a finer grained control over deployment. I'm not
> very fan of it, but it's something I won't be able to change. So I
> need a way to point the following URL's to another place in the file
> system.
> http://server/[context]/jsp/*
> http://server/[context]/css/*
> http://server/[context]/html/*
> http://server/[context]/images/*
>
> Thanks
> emerson
>
> On 18/02/2008, David Brown <[EMAIL PROTECTED]> wrote:
>   
>> Once the .war is expanded why would you want to map to JSPs outside of the 
>> file system package?
>>
>> emerson cargnin wrote ..
>>     
>>> Hi there
>>>
>>> We use resin here in my work. Resin allows in its web.xml an element like:
>>>
>>>   <path-mapping>
>>>     <url-pattern>/jsp/*</url-pattern>
>>>     <real-path>c:/resin/resin-2.1.4/apps/ucs/</real-path>
>>>     </path-mapping>
>>>    <path-mapping>
>>>
>>>
>>>
>>> This can also be used in resin.conf, amking the war more portable.
>>>
>>> Now we are starting a migration to tomcat. But as far as I know TC
>>> doesnt not allow to have the JSP's out side of the war or the expanded
>>> war. I did a research a couple of years ago. Did it changed? Is there
>>> anyway now of mapping the jsp's of an app to an outside folder?
>>>
>>> Thanks
>>> Emerson Cargnin
>>>
>>> ---------------------------------------------------------------------
>>> To start a new topic, e-mail: users@tomcat.apache.org
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>       
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>     
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>   

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to