----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
Mario,
The init parameters for your servlet(s) are stored in the
zone.properties-file. If you edit this file you'll see the following lines:
servlets.default.initArgs=...
servlet.MyServlet.initArgs=...
The first parameter is a global parameter. This means it applies to all the
servlets maintained by this zone.properties-file. The second parameter only
applies to MyServlet
Suppose you have a servlet called MyServlet and you need init parameters
called MyInit1, MyInit2:
servlets.MyServlet.initArgs=MyInit1=testing1, MyInit2=testing2
If you use this code in MyServlet:
public void init (ServletConfig config) throws ServletException {
super.init(config);
String MyInitPar1 = config.getInitParameter("MyInit1");
}
the string MyInitPar1 will contain "testing1".
The contents of the zone.properties-file should be self explanatory. There
should be a lot of documentation and howto's included with the Apache and
JServ archives. If however you need more information visit:
http://java.apache.org/jserv/install/howto.servlets.html
regards,
Kenneth Westelinck
>From: "Mario Jaramillo R." <[EMAIL PROTECTED]>
>Reply-To: "Java Apache Users" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Information About configuration files
>Date: Fri, 9 Feb 2001 16:42:47 +0500 (GMT)
>
>----------------------------------------------------------------
>BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
>WHEN YOU POST, include all relevant version numbers, log files,
>and configuration files. Don't make us guess your problem!!!
>----------------------------------------------------------------
>
>
> Greetings:
>
> I am working with Servlets in this environment: Linux Mandrake
> 7.1, ApacheJServ-1.1.2, Apache Http web server -1.3.12, JSDK2.0,
> and jdk1.2.2, all in the directory : /usr/local.
>
> I am storing the servlets ( .class and .java) in the directory:
> /usr/local/apache/servlets and I am included the line:
> Include /usr/local/apache/servlets/jserv.conf in the file:
> /usr/local/apache/conf/httpd.conf.
>
> I execute the servlets in this way, into my browser:
> http://myHost/servlets/MyServlet, and it is working.
>
> also, I am using html forms included in the directory:
> /usr/local/apache/htdocs , and execute the servlets in this way:
> http://myHost/formxxx.html, and it's working.
>
> Now, I need to work with "Initializing Parameters" in order to
> use the method "getInitParameters() , and I need to obtain the
> following information:
>
> .Where and How I have to configure the file with the names/values
> of the initializing parameters, how I must named this file ??
>
> .Which is your relation with the others files:httpd.conf,
> zone.properties, jserv.conf ????
>
> .Where can I to find a detailed information about how to configure
> this files ??
>
> Thanks in advance
>
> Sincerely
>
> Mario jaramillo
>
> Teacher
>
> Universidad De Antioquia
>
> Medellin , Colombia
>
>
>
>
>
>--
>--------------------------------------------------------------
>Please read the FAQ! <http://java.apache.org/faq/>
>To subscribe: [EMAIL PROTECTED]
>To unsubscribe: [EMAIL PROTECTED]
>Search Archives:
><http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
>Problems?: [EMAIL PROTECTED]
>
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search Archives:
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]