My Java web application contains a startup servlet. Its init() method is invoked, when the web application server (Tomcat) is started. Within this method I need the URL of my web application. Since there is no HttpServletRequest, how to get this information?
My Java web application contains a startup servlet. Its init() method is invoked, when
Share
Here is how it works for me and probably for most configurations: