tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <>
Subject RE: SOLVED: How to get the context path for a web application?
Date Tue, 10 Aug 2004 17:30:11 GMT


>Agreed, but my follow-up question was if there was such a call to be
>using a ServletContext/ServletConfig object so that you can get the
>path in initialization servlets, etc., before a request comes in.

No, and an archive search would reveal past discussions around this
issue (though none recently).   Webapps are supposed to be independent
of their server configuration including with regards to context path,
and so the Servlet Spec actively discourages you from doing webapp
initialization or configuration based on such data.  A lot of people
debated for a long time what does and doesn't go into the
ServletContext/ServletConfig objects as opposed to Request/Response


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:
For additional commands, e-mail:

View raw message