How do you get the full URL of a webapp?
For example if the webapp is on a server with ip 100.0.0.200
on port 8080 and the context path is /somewebapp
then I want an output string
http://100.0.0.200:8080/somewebapp Is there a way to do this at startup(as opposed to using a ServletRequest)?
I can get the ip address by using
I am stumped about the rest, any ideas?
Thanks in advance