Is there anyway to make the <c:url> tag generate an absolute URL, given a relative URI? Or perhaps another tag?

For example, if I had a file main.jsp in the root of my webapp, I'd like the following mock tag:

<c:url value="/main.jsp" absolute="true" />

to produce the following result

http://myserver:port/servletContext/main.jsp

I can do this by hand using request.get[Scheme|ServerName|ServerPort|ContextPath](), so it seems like a tag should be able to do it.

K.C.


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to