tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <>
Subject Re: header in Tomcat 6.x
Date Mon, 06 Jul 2009 22:16:47 GMT
2009/7/6 Tuan Quan <>:
> Dear all;
> How can I set header in Tomcat 6 similar to IIS, in a way that when users type URL:
> http://mywebserver_name
> it automatically forwards to my webapp URL: http://mywebserver_name/myweb/jsp/login.jsp

Don't know what there is in IIS,
but here you can set up ROOT application that has welcome-page that
sends HTTP status code 302 redirection to your clients.

E.g., (index.jsp):

<%@taglib prefix="c" uri=""%>
<c:redirect url="/myweb/jsp/" />

or using response.sendRedirect(...)

Also, usually you cannot send one to the login page directly:
you should send them to some of the protected pages, and they will be
redirected to the login page from there (unless they are already

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message