Return-Path: Delivered-To: apmail-new-httpd-archive@apache.org Received: (qmail 40656 invoked by uid 500); 14 Aug 2001 09:51:00 -0000 Mailing-List: contact new-httpd-help@apache.org; run by ezmlm Precedence: bulk Reply-To: new-httpd@apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list new-httpd@apache.org Received: (qmail 40637 invoked from network); 14 Aug 2001 09:50:59 -0000 Message-ID: <3B790194.F6F8FB85@alicante.fr> Date: Tue, 14 Aug 2001 11:46:44 +0100 From: Tony Genty X-Mailer: Mozilla 4.7 [fr] (WinNT; I) X-Accept-Language: fr MIME-Version: 1.0 To: new-httpd@apache.org Subject: web.xml Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Status: O X-Status: X-Keywords: X-UID: 560 Hi, I'm using Tomcat 3.2.1 but I have some problem with . I have a servlet which should just be use to get initParameter and put them in the ServletContext for my other servlet/JSP use them but an error tell me the servlet cannot be load why? Here the web.xml file and the servlet : WEB.XML initAll Init images images dataPath data internet internet intranet intranet LocalBase c:\jakarta-tomcat-3.2.1\webapps\netarras\realisation\maquettes\ host http://palerme:8080/ 1 process /realisation/maquettes/jsp/process.jsp modify /realisation/maquettes/jsp/modify.jsp modif /realisation/maquettes/jsp/modif.jsp initAll /initAll process /process modify /modify modif /modif *** Init.java import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import java.util.*; // servlet just launch init parameters and set them in ServletContext public class Init extends HttpServlet{ public void init(ServletConfig config){ super.init(config); System.out.println("Entering Init"); Properties props=new Properties(); for (Enumeration e=config.getInitParameterNames();e.hasMoreElements();){ String key=(String)e.nextElement(); props.put(key,config.getInitParameter(key)); } ServletContext context=getServletContext(); context.setAttribute("data",props); System.out.println("Init Done"); } } the local dir is c:\jakarta-tomcat-3.2.1\webapps\netarras\WEB-INF\classes Thanks in advance -- GENTY Tony IUP GMI Stagiaire Alicante