#-----------------------------------------------------------------------------#
# Configuration file(TM) for oncore(TM) ( Online Course Registration ) program
#-----------------------------------------------------------------------------#
#
# There are two servlets. The servlet engine needs to know the location of the
# code ( i.e. class file ) to load a particular servlet. This is done as
# follwows :
# servlet.<name>.code=class name (foo or foo.class)
#
# One can also give arguments to the servlet when it is loaded by servlet
# engine. This is acheived as follows :
# servlet.<name>.initArgs=comma-delimited list of {name, value} pairs
#			  that can be accessed by the servlet using the
#			  servlet API calls
# Main servlet . The heart of the project !
# since the project lies in the package oncore, the path ( with respect to the
# directory provided as command line argument to servlet engine ) of the Main
# class is written as oncore.Main


# startup arguments for class Main
#
# rcfile -- configuration file. This is not used right now, but is reserved
# for future use in case many servlets are going to use same servlet engine.
#
# port -- port number on which the servlet engine will run
#
# phase -- phase of the program (refer SRS to find out which phase has what
# functions).
#
# dblogin -- Login name for database like oracle        
#
# dbpasswd -- Password for the database login. For security this file can be
# made unreadable or password can be read from input whenever servlet starts.
# however second method is not recomended since the servlet class file is not
# loaded until first request. This means that the password will be asked only
# when a request comes. Ofcourse, such an artificial request can be generated
# by the person who starts the serv;et engine.
#
# month_* -- For finding out which month corresponds to which sem number we
# need to give numbers 0,1,2 to months month_0(Jan) to month_11(Dec).
#
#
# hostname -- Name of the SMTP server        
#
# ouraddress -- Our own email address
#
# url -- The main url of the program
#
# surl -- URL of the servlet which gives student info. This servlet takes the
# request in following format :
#  http://everest.cse.iitb.ernet.in:5034/servlet/StudInfo?srollno=<rollno>
#
#
# jdbchost -- MAGIC string for connecting through JDBC. Read documentation
# which comes along with JDBC drivers for a database before changing this !
#
#-----------------------------------------------------------------------
#
# StudInfo -- Servlet which gives information about students which is stored
# in Acad office database. 
#
# StudInfo.code -- specifies the location of the class file.
#
#
# StudInfo.initArgs -- Startup args for the servlet
#
# jdbchost -- MAGIC string for connecting through JDBC. Read documentation
# which comes along with JDBC drivers for a database before changing this !
#
#
# dblogin -- login name for database
#
# dbpasswd -- password for database. Read comment in above dbpasswd part.    

servlet.Main.code=oncore.Main
servlet.Main.initArgs=rcfile=/users/ug96/kedar/works/bis/proj/.ocrrc,\
        port=5034,\
        phase=0,\
        dblogin=asdas,\
        dbpasswd=clora,\
        month_0=0,\
        month_1=0,\
        month_2=1,\
        month_3=1,\
        month_4=1,\
        month_5=1,\
        month_6=1,\
        month_7=1,\
        month_8=1,\
        month_9=2,\
        month_10=2,\
        month_11=2,\
        hostname=144.16.111.4,\
        ouraddress=kedar@cse.iitb.ernet.in,\
        url=http://everest.cse.iitb.ernet.in:5034/servlet/Main,\
        surl=http://everest.cse.iitb.ernet.in:5034/servlet/StudInfo,\
        helpurl=http://everest.cse.iitb.ernet.in/~kedar/help.html,\
        jdbchost=jdbc:oracle:thin:@everest:1521:GEN
servlet.StudInfo.code=oncore.StudInfo
servlet.StudInfo.initArgs=\
jdbchost=jdbc:oracle:thin:@everest:1521:GEN,\
    dblogin=asdas,\
    dbpasswd=clora
