I am working for java web application and I am using login.jsp file to login into the application, here we are using <link>
tag to display icon at the browser tab.
The following is the link tag.
<html>
<head>
<link rel="icon" href="/images/favicon.ico">
</head>
</html>
Here in href I want to use the absolute path to render icon which will be helpful in rendering icon image in IE.
Since we are using the jsp file, we can get the request object, So how to form the absolute url from the request and place it into the href of link tag