On Fri, 2 Mar 2001, [ISO-8859-1] ³�� wrote:

> Milt Epstein��how do you do��
>
> I am also learning to use Tomcat, i think you can look up the
> directory of tomcat which name is conf,under the directory there are
> the configure file of tomcat ,you can modify the file appropriate
> that contain the configure which allow you to use a servlet as the
> default "page", i think it may not in one file ,but i do not know
> which one is .  I am sorry for my poor english.

OK, I was thinking there might be such a possibility, but without
knowing exactly which config file and what to put in there, I'm not
sure how to proceed.  Thanks, though.


> �� 01-3-2 0:03:00 �����
> >I just started using Tomcat, and hence the 2.2 servlet spec.  But I
> >don't think this is anything specific to Tomcat, it seems like it just
> >has to do with what the 2.2 servlet spec allows.
> >
> >What I'm trying to do is have a URL of the form:
> >
> >http://some.domain.name/blah
> >
> >go directly to a servlet, i.e. something that normally you'd get to
> >with a URL of the form:
> >
> >http://some.domain.name/blah/servlet/blah
> >
> >I've set up blah as a webapp (i.e. a context), and essentially I'd
> >like a servlet to be the default "page" of the webapp.  The default
> >page can be a static html page (e.g. index.html) or a JSP
> >(e.g. index.jsp), so why not a servlet?  But I've tried a few things
> >with the webapp's servlet names and servlet mappings in the web.xml
> >file, without success.
> >
> >At jakarta.apache.org, I found a similar question in the FAQ-o-matic,
> >and it suggested having the default index page do a redirect, and/or
> >using Apache's mod_rewrite.  I tried the former, both with a static
> >html page (and a META Refresh) and a JSP (and a RequestDispatcher
> >forward()), and while it works, it changes the Location: shown by the
> >browser to:
> >
> >http://some.domain.name/blah/servlet/blah
> >
> >which I'd like to avoid.  I thought maybe there was something
> >available via the servlet spec (and/or Tomcat) that I was missing.
> >
> >I'm looking into the mod_rewrite solution as well.
> >
> >Thanks.
> >
>

Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to