S
Sergio
Hello there,
I've been moving the first steps in servlet programming since a few
weeks and I'd like to submit you a questions about how to store
servlet's parameters (I'm currently using Tomcat 4.1.x).
I know that:
- parameters can be passed within the invoking URL
- can be stored in the web.xml file
But I'm considering the case for storing parameters in a file that
could be easily modified by the end user and read by the servlet each
time it's executed so that there's no need to restart the server after
every change.
Even though I know that a simple solution could be using a file
structure like:
PARAMETER1_NAME = PARAMETER1_VALUE
PARAMETER2_NAME = PARAMETER2_VALUE
....
but I would experiment with XML, so I'd like to know whether is there
a preferred way to parse XML file within a servlet (I'm oriented to
use a DOM approach).
I've read about Xerces, IBM's XML4j, JAXP but still wondering which
one to choose.
Do you have suggestions and can you direct me to examples/tutorials?
Thanks a lot in advance.
Bye
Sergio
I've been moving the first steps in servlet programming since a few
weeks and I'd like to submit you a questions about how to store
servlet's parameters (I'm currently using Tomcat 4.1.x).
I know that:
- parameters can be passed within the invoking URL
- can be stored in the web.xml file
But I'm considering the case for storing parameters in a file that
could be easily modified by the end user and read by the servlet each
time it's executed so that there's no need to restart the server after
every change.
Even though I know that a simple solution could be using a file
structure like:
PARAMETER1_NAME = PARAMETER1_VALUE
PARAMETER2_NAME = PARAMETER2_VALUE
....
but I would experiment with XML, so I'd like to know whether is there
a preferred way to parse XML file within a servlet (I'm oriented to
use a DOM approach).
I've read about Xerces, IBM's XML4j, JAXP but still wondering which
one to choose.
Do you have suggestions and can you direct me to examples/tutorials?
Thanks a lot in advance.
Bye
Sergio