Felipe Schnack wrote:
Presumably this doesn't change, right? You could either store it as a constant (public static final String) of the servlet or as a web.xml context-parameter.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
You can get various parts of the URI from the HttpServletRequest in that particular servlet, since presumably the request contains the URL that was used to fetch the servlet. But doesn't sound like what you are looking for (a way to determine the URL from within other classes, not the servlet).I can get this from HttpServletRequest??
Erik
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
