If you're expecting to get DSN or UID from the Init Params of the SimpleServlet, you won't get any because they are commented out, that's what the hash sign (#) means.
 
If you're expecting to get DSN from cookie or jsp's Init Params, you won't because they are not defined.
    (*Chris*)
----- Original Message -----
From: Jianhong
Sent: Tuesday, July 27, 1999 2:18 AM
Subject: Cann't read parameter from properties file

Hi, everyone,
 
I want to read DSN and so on from properties file to init a database Connection, but I don't know why what I read is null.
Here is the file "servlets.properties":
 
# $Id: servlets.properties,v 1.2 1999/04/02 02:04:01 duncan Exp $
# Define servlets here
# <servletname>.code=<servletclass>
# <servletname>.initparams=<name=value>,<name=value>
 
#SimpleServlet.code=SimpleServlet
#SimpleServlet.initparams=DSN=iceClassified,UID=sa
cookie.code=CookieExample
cookie.initparams=foo
jsp.code=com.sun.jsp.runtime.JspServlet
Does anyone can help me out?
Thanks in advance.
 
Jianhong
 

Reply via email to