----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

Hi,

For a certain servlet I need the path to a servlet.properties file. I'm 
using:
servlet.MyServlet.initArgs=c:/ToProperties/

Instead of:
servlet.MyServlet.initArgs=c:\\ToProperties\\

Works fine with me.

Hope it helps,

Kenneth


>From: Jane Trois <[EMAIL PROTECTED]>
>Reply-To: "Java Apache Users" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: initArgs in zone.properties read as null
>Date: Wed, 1 Nov 2000 10:40:30 -0800 (PST)
>
>----------------------------------------------------------------
>BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
>WHEN YOU POST, include all relevant version numbers, log files,
>and configuration files.  Don't make us guess your problem!!!
>----------------------------------------------------------------
>
>Hi,
>
>Running Apache 1.3.12, Apache JServ 1.1.2 on NT.
>
>I'm currently using the zone.properties file for
>passing in a init parameter to my servlet.  I noticed
>some peculiar behavior if I have a trailing backslash.
>  The following gives me a null value in the servlet:
>
>servlet.MyServlet.initArgs=config_path=C:\\
>
>However, if I omit the trailing backslash, so that
>it's
>
>servlet.MyServlet.initArgs=config_path=C:
>
>the servlet gets the value correctly.  I've tried a
>variety of paths, both with trailing slashes and
>without, and the ones without trailing slashes always
>are fine, whereas the ones with trailing slashes
>always are null.
>
>Any insight into what's wrong?
>
>Thanks!
>
>jane
>
>__________________________________________________
>Do You Yahoo!?
>From homework help to love advice, Yahoo! Experts has your answer.
>http://experts.yahoo.com/
>
>
>--
>--------------------------------------------------------------
>Please read the FAQ! <http://java.apache.org/faq/>
>To subscribe:        [EMAIL PROTECTED]
>To unsubscribe:      [EMAIL PROTECTED]
>Search Archives:
><http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
>Problems?:           [EMAIL PROTECTED]
>

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search Archives: 
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to