Oops. Felipe did ask for the servlet URL. For finding other servlets in the application, I suppose that a servlet could read its own .xml file. :-)
"Will Hartung" <[EMAIL PROTECTED]> wrote in message 088201c2cee6$7280f890$01000001@Will">news:088201c2cee6$7280f890$01000001@Will... > That only works when the requester is the servlet itself. Also, just because > you have the name of a servlet doesn't mean you know a valid URL for that > servlet, as they don't have to match. > > The key here, I think, is that in the past servlets were able to "see" other > servlets within the webapp, but today I think that access is limited. > > So, if you are in ServletA and want the URL to ServeltB, there's no obvious > way find that information. > > Regards, > > Will Hartung > ([EMAIL PROTECTED]) > > ----- Original Message ----- > From: "Sean Dockery" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, February 07, 2003 11:05 AM > Subject: Re: servlet URL > > > > HttpServlet.getServletName() would seem like the logical choice. > > -- > > Sean Dockery > > [EMAIL PROTECTED] > > Certified Java Web Component Developer > > Certified Delphi Programmer > > SBD Consultants > > http://www.sbdconsultants.com > > > > > > "Felipe Schnack" <[EMAIL PROTECTED]> wrote in message > > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > How I retrieve the URL an HttpServlet instance is mapped to? > > > > -- > > > > Felipe Schnack > > Analista de Sistemas > > [EMAIL PROTECTED] > > Cel.: (51)91287530 > > Linux Counter #281893 > > > > Centro Universit�rio Ritter dos Reis > > http://www.ritterdosreis.br > > [EMAIL PROTECTED] > > Fone/Fax.: (51)32303341 > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
