Or, just screw IIS and go to Apache.  With Apache, you can tell it what
pages to serve if no page is put into the url.  (DirectoryIndex
index.html index.html.var default.htm)

-----Original Message-----
From: John Turner [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 27, 2003 1:57 PM
To: Tomcat Users List
Subject: Re: Tomcat and IIS


AFAIK, the only way to do this when using Tomcat in conjunction with a
web 
server is a kludge.  I do it by making index.html my default home page,
and 
having index.html be nothing but a meta refresh page with a time of "0"
to 
http://www.foo.com/index.jsp.  There are other ways...some Apache folks
use 
mod_rewrite.

This means index.jsp will show up in the address bar of the browser.  If

you don't want that, I'm not sure you can do it. I don't know enough
about 
IIS to know if there is a more elegant way to do it.

If you want to use Tomcat alone, you setup a welcome-file tag/element in

your application's web.xml file that has index.jsp as a parameter.

John

On Thu, 27 Mar 2003 12:47:17 -0800, jsp <[EMAIL PROTECTED]> wrote:

> I'm trying to get away from ASP. The top file of my website is an
> index.jsp page. I set the root directory for the website to
> \<Catalina_home>\webapps\MyWebsite
>
> So when you go to http://www.mywebsite.com the default page in iis is
> index.jsp but I'm positive that is the wrong way to do this because
the
> only way jsp will work is if you type into the browser
>
> http://www.mywebsite.com/MyWebsite/index.jsp
>
> maybe this is not a tomcat related question but I'm hoping someone
could
> be doing this and give me some type of CLUE ?
>
> Basically when you go to http://www.mywebsite.com I want the top file
to
> be a functioning .jsp page because I don't want to use an ASP stats
> program.
>
> Hopefully it makes sense
>
> -wiley
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to