Hello, it's called web.xml and they're called init parameters. Check out the
"Developing Applications with JRun" doc for some examples. See also Jason
Hunter's or Karl Moss' books on Servlet programming for the basic concept,
though the implementation of the concept in Servlet 2.2 is best learned from
something more recent like the JRun doc mentioned above. You can also set
application variables that will be accessible to all servlets in your
application.
Webroot and other file paths can be determined using calls to the servlet API,
BTW. Try request.getRealPath(String) and other goodies like that (see the
servlet API).
Scott Stirling
Allaire
> -----Original Message-----
> From: D Gilliland [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 01, 2000 5:06 PM
> To: [EMAIL PROTECTED]
> Subject: global file for servlet
>
>
> is there a way to create a file to hold info such as
> dburl, webroot etc in a file that does not need to be
> compiled <like an *.ini file>?
------------------------------------------------------------------------------
Archives: http://www.egroups.com/group/jrun-interest/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the
body.