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]

Reply via email to