Hi, I need to manufacture a URL and show to the user as text, and naturally I don't want the first part to be hard coded but reflect where the application is deployed.
I am sure there is some embarrassingly simple way to get the "base URL" or whatever it is called - can someone help me out?
As an example - say I want the URL to what this would produce:
<h:outputLink value="/mysite/animage.jpg" />
Have a look at http://www.jboss.com/index.html?module=bb&op=viewtopic&t=101708.