Does the servlet load the properties in its init() method, or are you reading it on 
every request?  Reading it on every request should work (though a terrible burden).

If you're loading on init, a simple (minded) solution is to add the ability for the 
servlet to reload the property file when a special querystring parameter is received:
if (request.getParameter("reloadProperties") != null)
{
    // reload property file
}

then when you update the property file just call your servlet with 
?reloadProperties=1

Lance Lavandowska
www.Brainopolis.com
 
----- Original Message ----- 
From: "Kevin Zheng" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 05, 2001 2:19 PM
Subject: properties reloading


> hi all,
> 
> i got a problem with properties reloading. the property file contains a list
> of URLs is called from within doPost or doGet in a servlet. this is to
> redirect site visitor to different URLs accordingly (for test and production
> server). after moving files to the production server, i changed some of the
> URLs and realized the servlet is still taking the pervious URLs. (i learn my
> lesson the hard way.)

___________________________________________________________________________
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

Reply via email to