-
Sep 24th, 2008, 02:25 AM
#1
Absolute URI's in jsp+templates?
Hello,
I am pretty new to spring and jsp. So I have a question related to absolute uris.
In my application's views I have views which resolve to webapp/admin/index.htm, and webapp/index.htm and so on.
As you can see using a link <a href="logout.htm">logout</a> would redirect in the one case to webapp/admin/logout.htm, and webapp/logout.htm. As this is not what I want, I am currently using:
<a href="<%= application.getContextPath() %>/logout.htm">logout</a>
Is this the way one usually does that in spring/jsp? I tried to search in this forum for "absolute uri" and other keywords, but found only <%= application.getContextPath() %>/webapp/logout.htm, which is even less compatible (when for example I change the path to the webapp).
Regards,
Jan (DracoBlue)
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules