2009/7/6 Tuan Quan <tuan_q...@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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to