Sending index.jsp in Root to my webapp's root in Tomcat?
843835May 15 2003 — edited May 15 2003Hi all,
I have what is probably a pretty simple question but I'm stumped at the moment:
In Tomcat, I have a app right now that is deployed in the Root directory. I'm going to be upgrading but now deploying in a .war file. How can I redirect all of the root requests to webapp xyz's root (ie. http://localhost goes to http://localhost/xyz)?
I have tried replacing Tomcat's default Root index.jsp code with :
<%
response.sendRedirect(="http://localhost/xyz/index.html"/>)
%>
but it gives me a 'no context' error. Is it possible to forward to another webapp on the same server? I tried this and got the same type of error.
Any ideas?
Thanks in advance,
Mike