Antonio Petrelli wrote: > Wojciech Ciesielski ha scritto: >> I need to find URL to my application >> (http://myhost:8080/myAppContext) from within init() method of struts >> plugin (implementing PlugIn interface). Any ideas how can I do this >> programatically without specifying it explicitly in one of >> application configuration files? > You can't do it, in any part of your web-app! But what do you need > your application URL for?
getServletContextName from ServletContext will give you the app context (I think). AFAIK the only way you can get the host and port etc. is by servicing a request, but I have no idea if that's really true or not. Dave --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]