- From: Benoit Mahe <Benoit.Mahe@sophia.inria.fr>
- Date: Mon, 10 Jan 2000 11:26:11 +0100
- To: Maciek Brodala <maciekb@worldnet.att.net>
- CC: Yves Lafon <ylafon@w3.org>, Benoit Mahe <Benoit.Mahe@sophia.inria.fr>, www-jigsaw@w3.org
servlet.properties is not (yet) used by Jigsaw. Please read the servlet documentation about paramters [1]. [1] http://www.w3.org/Jigsaw/Doc/User/servlets.html#parameters Regards, Benoit. Maciek Brodala wrote: > Hello there , > I have a servlet that needs some initial values from servlet.properties > file. > When I call getInitParameter("index") in the init() of SearchServlet to > store the reference to the index file("search.txt") I receive value null > instead of path to the search.txt file. > Here is the servlet.properties entries : > servlet.SearchServlet.initArgs=index="C:\\JigsawServer\\Jigsaw\\Jigsaw\\sear > ch.txt" > servlet.SearchServlet.code=SearchServlet > > Here is a snippet from SearchServlet : > private String initParam; > > In the init(): > > super.init(config); > initParam = getInitParameter("index");// here the value of initParam is null > instead of the path to the search.txt taken from servlet.properties file > > I put search.txt and servlet.properties in the root of the server > (C:\JigsawServer\Jigsaw\Jigsaw). > I didn't make any configuration in the JigsawAdministator.I just simply > copied those files in Explorer. > What am I doing wrong ? I think it should be simple to configure servlet > using servlet.properties and pass all the initial arguments from the file > into a servlet wit getInitParameter() function , but it doesn't work for me > ;-) > Regards , > maciek brodala -- - Benoît Mahé ------------------------------------------------------- World Wide Web Consortium (W3C) Architecture domain - Jigsaw Engineer http://www.w3.org/People/Mahe - bmahe@w3.org ---------------------------------------------------------------------
Received on Monday, 10 January 2000 05:27:17 UTC