Hi, Veeru,
Thanks for your reply.
But it seems you don't understand what I
mean.
Now, I cann't get the correct parameter from
properties file, I don't know what the wrong is.
Thanks again.
Jianhong
----- Original Message -----
From: Veerabhadra Rao P <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 27, 1999 5:51 PM
Subject: RE: Cann't read parameter from properties
file
Try adding the DSN name in the System DSN's and not in the
normal dsn names while creating the odbc shortcut. Make sure the
iceClassified u have defined is in the System DSN entries.
-- Veeru.
> -----Original Message-----
> From: Jianhong [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, July 27, 1999 3:18 PM
> To: Veerabhadra Rao P; Vinod A
> 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
>
