Christopher Schultz-2 wrote:
> 
> How about the code from footer.jsp (or header.jsp) that actually
> generates the links?
>  <%= response.encodeURL(request.getContextPath()
         +  ">link text 
> 

Thanks for the help, Chris. The code in footer and header were just a list
of HTML <A links, not real JSP. I put the above code in for the first
hyperlink in the header file and it worked from all directories. 

So, we were hoping to migrate our code over to the new virtual setup without
much editing. It appears that the context path will play more of a major
role than it did on the default Tomcat installation where this was fine.

Actually, a weird think happened on the way to the ...
I noticed that even though I only changed the first <A link to the JSP
format, the other links across the header suddenly were correct, even though
they were still in the HTML <A format. This was not an expected outcome and
begs the question: Is there an easier way (read: work around with
configuration files) to have the header HTML <A links inside the JSP file be
interpreted within the correct context from where ever inside this
bcosite.com virtual host, without rewriting all the old code to proper JSP? 

Again, thank you for the encoding of the URL points. Looking for problems
with the virtual hosts configuration and missed the trees. 

-- 
View this message in context: 
http://www.nabble.com/hyperlink-has-added--dir-on-virtual-host-tp23943241p23951383.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to