Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 31344 invoked from network); 7 Feb 2003 19:11:17 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 7 Feb 2003 19:11:17 -0000 Received: (qmail 14114 invoked by uid 97); 7 Feb 2003 19:12:50 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 14107 invoked from network); 7 Feb 2003 19:12:50 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 7 Feb 2003 19:12:50 -0000 Received: (qmail 29822 invoked by uid 500); 7 Feb 2003 19:11:02 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 29811 invoked from network); 7 Feb 2003 19:11:01 -0000 Received: from wall.ritterdosreis.br (HELO phoenix.ritterdosreis.br) (200.198.106.115) by daedalus.apache.org with SMTP; 7 Feb 2003 19:11:01 -0000 Received: from desenv1.ritterdosreis.br (cardinal.ritterdosreis.br [192.168.1.3]) by phoenix.ritterdosreis.br (Postfix) with ESMTP id C2D4739C503 for ; Fri, 7 Feb 2003 17:08:17 -0200 (BRST) Subject: RE: servlet URL From: Felipe Schnack To: Tomcat Users List In-Reply-To: References: Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable X-Mailer: Ximian Evolution 1.0.3 (1.0.3-4) Date: 07 Feb 2003 17:11:03 -0200 Message-Id: <1044645063.1327.51.camel@desenv1.ritterdosreis.br> Mime-Version: 1.0 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I'm writing a servlet that requires to be a Singleton (much like Struts' servlet), and I have some other objects that need to know the URL of this Servlet to make some redirects to it... so I need this servlet to have a method that return its URL, as in web.xml I can get this from HttpServletRequest?? On Fri, 2003-02-07 at 17:04, Filip Hanik wrote: > take a look at the javax.servlet.http.HttpServletRequest API, > it has a bunch of methods that you can use to retrieve all kinds of info = about the request. >=20 > but if you mean how do you retrieve the info that is in web.xml for your = particular servlet, > give us the scenario where you would like this info and how? >=20 > Filip >=20 >=20 > -----Original Message----- > From: Felipe Schnack [mailto:felipes@ritterdosreis.br] > Sent: Friday, February 07, 2003 10:58 AM > To: Tomcat Users List > Subject: servlet URL >=20 >=20 > How I retrieve the URL an HttpServlet instance is mapped to? >=20 > --=20 >=20 > Felipe Schnack > Analista de Sistemas > felipes@ritterdosreis.br > Cel.: (51)91287530 > Linux Counter #281893 >=20 > Centro Universit=E1rio Ritter dos Reis > http://www.ritterdosreis.br > ritter@ritterdosreis.br > Fone/Fax.: (51)32303341 >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org >=20 --=20 Felipe Schnack Analista de Sistemas felipes@ritterdosreis.br Cel.: (51)91287530 Linux Counter #281893 Centro Universit=E1rio Ritter dos Reis http://www.ritterdosreis.br ritter@ritterdosreis.br Fone/Fax.: (51)32303341 --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org