You dont need to do that..
Just do:
 <welcome-file>/ephome/news/ep_infozone.jsp</welcome-file>
Since you are already in your web application at this time. You dont need to hardcode the host URL.
-Tim
-----Original Message-----
From: anoop [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 28, 2001 9:53 AM
To: [EMAIL PROTECTED]
Subject: Re: URL hiding in Tomcat

but urls dont seem to work..here is my web.xml which is in my root/web-inf folder..
 
<?xml version="1.0" encoding="ISO-8859-1"?>
 
<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    "
http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
 
<web-app>
<welcome-file-list>
 <welcome-file>
          
http://260.102.10.1:8080/ephome/news/ep_infozone.jsp
        </welcome-file>
</welcome-file-list>
</web-app>
 
but when i use just a static file..Login.html in the welcome-file tags
then it works perfectly..
any more suggestions??
 
anoop

----- Original Message -----
From: Chen, Gin
Sent: Wednesday, November 28, 2001 7:45 PM
Subject: Re: URL hiding in Tomcat

I dont know what you mean by welcome-file-list being only for files and not for urls. I've always used the welcome file method and it always works. But remember, if you are using Tomcat.. you need to add the welcome file list to the web.xml in your ROOT/web-inf folder
-Tim
-----Original Message-----
From: anoop [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 28, 2001 1:09 AM
To: [EMAIL PROTECTED]
Subject: URL hiding in Tomcat

hi all,
 
i have a made a web site which has a home link in it.
I want to make this link to appear when i just type http://localhost:8080/
is this possible to do this using Tomcat..i hv tomact 3.1. I hv tried using the
<welcome-file-list> and <welcome -file> but it seems they work only for
files and not for urls..is there some other way of doing this.. i also know abt the
alias mapping in apache...which might help..but i am not sure how to do that.
Can someone tell me if this is possible using only Tomcat
 
thanks in adv..
anoop

Reply via email to