Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 62673 invoked from network); 10 Jan 2003 16:39:59 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 10 Jan 2003 16:39:59 -0000 Received: (qmail 13739 invoked by uid 97); 10 Jan 2003 16:40:58 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 13723 invoked by uid 97); 10 Jan 2003 16:40:57 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 13711 invoked by uid 98); 10 Jan 2003 16:40:57 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Subject: Re: How do I set a default servlet? To: "Tomcat Users List" X-Mailer: Lotus Notes Release 5.0.4 June 8, 2000 Message-ID: From: JStanczak@vinu.edu Date: Mon, 10 Feb 2003 11:39:32 -0500 X-MIMETrack: Serialize by Router on INDIAN/VUMAIL(Release 5.0.11 |July 24, 2002) at 01/10/2003 11:39:36 AM MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Is that the only bad thing about it. The reason I'm asking is because the servlet that I'm wanting to map is the one that generates all the web pages. So if someone goes to http://www.myserver.com I want that to call this servlet that will generate a default web page. Namely the front page to our web site. But if someone types http://www.myserver.com/servlet/pageservlet it also takes them to this servlet that's also the default. Then I don't want it to interfere with other mappings like manager and any other servlets that I create. I don't really mind if it defaults all unknown request to the default that is a servlet. Also, the mapping you show, is that in the web app or in the /conf/web.xml for the server? Thank You, Justin A. Stanczak Web Manager Shake Learning Resource Center Vincennes University (812)888-5813 |---------+----------------------------> | | "Bill Barker" | | | | | | Sent by: news | | | | | | | | | | | | 01/10/03 02:26 AM| | | Please respond to| | | "Tomcat Users | | | List" | | | | |---------+----------------------------> >--------------------------------------------------------------------------------------------------------------| | | | To: tomcat-user@jakarta.apache.org | | cc: | | Subject: Re: How do I set a default servlet? | >--------------------------------------------------------------------------------------------------------------| Setting the default servlet is really easy. You just specify: myservlet myservlet myservlet / The problem is that this is almost certainly not what you want. This will invoke 'myservlet' for any URL that doesn't match any other servlet-mapping (including static-content). It looks like you want to have your welcome-file specified as a Servlet. This is only currently supported in Tomcat 3.3.2-dev (aka nightly), and Tomcat 5.x. wrote in message news:OF82399492.7D89FAD8-ON05256CA9.005A5EB4@vinu.edu... > I would like to setup my servlet server to point anyone that accesses the > default url to be sent to a certain servlet. For example if someone typed > http://localhost/ then it would take them right to > http://localhost/servlet/myservlet . I'm guessing this is done through the > web.xml in the conf directory, but is there a better way, like in the > applications web.xml. Either way hows the best way to accomplish this? > Thanks. > > > Thank You, > > Justin A. Stanczak > Web Manager > Shake Learning Resource Center > Vincennes University > (812)888-5813 -- To unsubscribe, e-mail: < mailto:tomcat-user-unsubscribe@jakarta.apache.org> For additional commands, e-mail: < mailto:tomcat-user-help@jakarta.apache.org> -- To unsubscribe, e-mail: For additional commands, e-mail: