Howdy,

>Why would you call it
>'init-param' if it's not used for initialization.

Something has to explicitly read the init-param.  The servlet container
simply makes it available for your servlets to read.

>Now I don't get any thing except the console output when I run the
>following
>test code(I got the following test code from the log4j tutorial), not
even
>warnings.  Darn, I cannot believe I am stuck on such a simple matter!

Instead of relying on log4j's default initialization, you can add a
simple line like
PropertyConfigurator.configure(getServletContext().getResource("/WEB-INF
/log4j.properties")) to your servlet's init method and you'll be all
set.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to