You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by David Jian <dj...@UU.NET> on 2000/02/04 23:56:03 UTC
initParams and servlets.properties
My servlet run JSDK2.0 servlet runner before. It use servlet.properties
below:
# $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>
#snoop.code=SnoopServlet
#snoop.initparams=initarg1=foo,initarg2=bar
#cookie.code=CookieExample
#cookie.initparams=foo
#servlet2.code=servlet2.Servlet2
#searchservlet.code=servlet7.SearchServlet
#jdbcservlet.code=dbservlet8.jdbcservlet
#jsp.code=com.sun.jsp.runtime.JspServlet
servlet.uuio.WizardServlet.code=uuio.WizardServlet
servlet.uuio.WizardServlet.initArgs=propertyFile=uuioWizard.properties
uuio.Wizard.properties file has following lines
# UUIO Wizard property configuration file
#
# The wizardPageDirectory is the full path to the directory containing all of
# of the wizard frame pages. The trailing slash for the filesystem must be
# included.
#wizardPageDirectory=/home/httpd/html/uunet/wizard/
wizardPageDirectory=c:\\uuiotest
dataManagerClass=uuio.JDBCDataManager
defaultImageURL=file:///C|/uuiotest/images/wiz-default.png
escapeCharacter='
# Debugging log configuration
enableDebug=true
uuio.JDBCDataManager.driver=oracle.jdbc.driver.OracleDriver
uuio.JDBCDataManager.connectionURL=jdbc:oracle:thin:@issgateway1.corp.us.uu.
net:1521:ISSWD
uuio.JDBCDataManager.username=xxxx
uuio.JDBCDataManager.password=yyyy
Now should I put this initial parameters to WEBAPP/WEB-INF/web.xml, or
somewhere else?
Based on FAQ, it looks like:
<servlet-class>
uuio.WizardServlet
</servlet-class>
<init-param>
<param-name>
propertyFile
</param-name>
<param-value>
uuioWizard.properties
</param-value>
</init-param>
</servlet>
Where should I put uuioWizard.properties file, or I have to combine it to
this xml file?
Thanks
DJ