tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <knst.koli...@gmail.com>
Subject Re: header in Tomcat 6.x
Date Mon, 06 Jul 2009 22:16:47 GMT
2009/7/6 Tuan Quan <tuan_quan@yahoo.com>:
> 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="http://java.sun.com/jsp/jstl/core"%>
<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
authenticated).

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


Mime
View raw message