Hi,
In the servlets.properties the two lines that configure SimpleServlet
are commented out - and ignored by the servlet engine;
remove the '#' hash character from the beginning of these two lines:
#SimpleServlet.code=SimpleServlet
#SimpleServlet.initparams=DSN=iceClassified,UID=sa
like here:
SimpleServlet.code=SimpleServlet
SimpleServlet.initparams=DSN=iceClassified,UID=sa
Bye,
Cezar
Subtlety is the art of saying what you think and getting out of the way
before it is understood.
-----------------------------------------------------------------------
On Tue, 27 Jul 1999, Jianhong wrote:
> 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
>
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html