Howdy,
A javax.servlet.Filter is one nice clean way.

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Chris Ward [mailto:[EMAIL PROTECTED]
>Sent: Friday, January 23, 2004 5:34 AM
>To: Tomcat Users List
>Subject: Repeated "load-on-startup" niggle
>
>
>Hi all,
>
>In my Tomcat setup I have a Context called "hal" which
>contains all my applications, HTML everything.
>
>       <Context path="/hal" docBase="hal" debug="0" privileged="true"
>reloadable="true">
>
>Therefore I run things with a URL such including "/hal"
>
>
>
>Way back when I started with Tomcat I set the "Tomcat Root Context"
>to point to the same docBase directory so any requests to "/page.html"
>would resolve to "/hal/page.html".
>
>       <!-- Tomcat Root Context -->
>       <Context path="" docBase="hal" debug="0"/>
>
>
>The problem I now have is that all the initialisation of /hal
>is run twice.  Once for each context.  Since I have several
>servlets with <load-on-startup> set this is a pain.
>
>Question
>========
>
>What is the cleanest way to redirect requests made to "/" to "/hal"?
>Can I do this by setting something up in the web.xml file for
>the "/" context.  Then I could remove the docBase="hal".
>
>
>
>Best regards
>Chris
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to