Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Sending index.jsp in Root to my webapp's root in Tomcat?

843835May 15 2003 — edited May 15 2003
Hi 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 12 2003
Added on May 15 2003
3 comments
324 views