Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 27262 invoked from network); 15 Jan 2003 10:14:57 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 15 Jan 2003 10:14:57 -0000 Received: (qmail 6644 invoked by uid 97); 15 Jan 2003 10:16:06 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 6586 invoked by uid 97); 15 Jan 2003 10:16:05 -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 6574 invoked by uid 98); 15 Jan 2003 10:16:05 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 content-class: urn:content-classes:message Subject: RE: servlet context, urgent !!! MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Wed, 15 Jan 2003 15:47:53 +0530 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: servlet context, urgent !!! Thread-Index: AcK8fp4faJoj2guTQECvdDxF1kPRkgAAEbJg From: "Prashanth Gane" To: "Tomcat Users List" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N in u r configured context inside webapps.. edit u r main application's web.xml..and add the following lines...fort = example.. welcome packagename.HelloWorld welcome /welcome =20 remember u have to do like this for each servlet u deploy -----Original Message----- From: Peng Annie [mailto:IMCEAEX-_O=3DKONE_OU=3DKCOBE_CN=3DRECIPIENTS_CN=3DKCOAPE@kone.com= ] Sent: Wednesday, January 15, 2003 3:37 PM To: 'Tomcat Users List' Subject: RE: servlet context, urgent !!! Thanks. In the global web.xml or the one in MainApplication? Could you = give me an example how to register? -----Original Message----- From: Prashanth Gane [mailto:pgane@zensutra.com] Sent: 15. tammikuuta 2003 11:54 To: Tomcat Users List Subject: RE: servlet context, urgent !!! if u r using tomcat4.1.x then u have to register the servlet context = inside the web.xml or else the server will not recoginse... -----Original Message----- From: Peng Annie [mailto:IMCEAEX-_O=3DKONE_OU=3DKCOBE_CN=3DRECIPIENTS_CN=3DKCOAPE@kone.com= ] Sent: Wednesday, January 15, 2003 3:15 PM To: 'tomcat-user@jakarta.apache.org' Subject: servlet context, urgent !!! Hi, I am useing Apache2, Tomcat4. Now I got a problem about the servlet = context. I have an main application which was configured to the DocumentRoot in httpd.conf, and the alias of this main application is just under the url root (http://servername/index.jsp will direct user to webapps/MainApplication/index.jsp). The programe need to redirect user = to another application webapps/SecondApplication/, so in a servlet of the MainApplication, I use the following statements: ServletContext sc =3D this.getServletConfig().getServletContext().getContext("/SecondApplicatio= n") ; =20 sc.getRequestDispatcher("/servlet/ControllerServlet").forward(request, response); But it doesn't work, I always get error=20 =09 The requested resource (/servlet/ControllerServlet) is not available. It seems Tomcat4 tried to find this ControllerServlet in the MainApplication. How can I get the context of SecondApplication? Should = I do sth with the web.xml? By the way, the above way works fine on Tomcat3.2. Please help, many thanks! Annie -- To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: