tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felipe Schnack <feli...@ritterdosreis.br>
Subject RE: servlet URL
Date Fri, 07 Feb 2003 19:11:03 GMT
  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.
> 
> 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?
> 
> Filip
> 
> 
> -----Original Message-----
> From: Felipe Schnack [mailto:felipes@ritterdosreis.br]
> Sent: Friday, February 07, 2003 10:58 AM
> To: Tomcat Users List
> Subject: servlet URL
> 
> 
>   How I retrieve the URL an HttpServlet instance is mapped to?
> 
> -- 
> 
> Felipe Schnack
> Analista de Sistemas
> felipes@ritterdosreis.br
> Cel.: (51)91287530
> Linux Counter #281893
> 
> Centro Universitário 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
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
-- 

Felipe Schnack
Analista de Sistemas
felipes@ritterdosreis.br
Cel.: (51)91287530
Linux Counter #281893

Centro Universitário 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


Mime
View raw message