                      Project Tourism Database
				  -----------------------
	                        by

		 Santosh Bag        (santoshb@cse.iitb.ac.in)
		 V.Kiran Gopal      (gopi@cse.iitb.ac.in)
		 Ravi Kumar Janga   (janga@cse.iitb.ac.in)

		 guided by Prof. Sudarshan
	
	           This is the main readme file with information about all the
			 java programs. Expalination for the scripts and other data is
			 provided in respective directories.



The "bin" contains the class files and "src" contains source code

-------------------------For Visitor Mode--------------------------------------
1. temp.java is for the first page (zone page)
2. prog2.java is for the second page (state and queries page)
3. prog3.java is for the third page (Result of the choices made in second page)
4. postings.java is for handling postings (emails and contents)
5. utilities.java is for giving info about states and places.

-----------------------For Administrator Mode---------------------------------
1.form1.java for providing login and shows the immeiate menu after the user has 
    logged in successfully.
2.form2.java for the next page after the administrator selects from one of the
	available options in the previous page.
3.form3.java does the query execution if the administratro chooses the query option
	and enters his query provided by form2.
4.form4.java serves as the common logout page for all the pages. it shows a message and invalidates
	the session as soon as the administartor clicks on the logout button provided in almost 
	every page.
5.form5.java this program serves to change the password of the administrator by conneting
	to the database and updates the relevant fields on checking the password matching
	and other criterion.
6.form6.java serves in  carrying out the update statement given by the administrator.
7.form7.java shows the frequency of visits histogram applet.(this is incomplete as we could
	not connect to the database through an applet for dynamic changes).

-------------Other programs used------------------------------------------------
1.Config.java this program contains the port information and the userids and passwords
	which are addressed by the various servlet programs.
2.HtmlParser.java this is the file which parses the text information we got from
	the web and adds appropriate HTML tags to the file and returns a new file 
	'filename.html' where 'filename' was the input file.
3.ExecuteHParser.java this file makes use of the HtmlParser.java and recursively
	parses the files presend in a directory given as an argument. (Note: this file
	expects a directory as an input and gives appropriate error message when a file
	is fed as input).
4.Index.java this is the file which parses the text information about the states we got from
	the web and adds appropriate HTML tags to the file and also adds an appropriate background and returns a new file 
	'filename.html' where 'filename' was the input file.
5.ExecuteIndex.java this file makes use of the Index.java and recursively
	parses the files presend in a directory given as an argument. (Note: this file
	expects a directory as an input and gives appropriate error message when a file
	is fed as input).

6.Frequency.java the program connects to the database and brings the information about
	frequency of visits from the frequencyofvisit table and writes it down in a file.
7.Histogram.java this file uses the file created by the Frequency.java program and 
	draws the Histogram using the values from the file.
8.GFileNames.java this program also expects a direcory(the name of the directory must 
	be the name of a state and the subdirectories the varioue types of places like
	Beaches, Pilgrimages etc with these directories containing the information files)
	and updates the database dynamically by inserting appropriate values in the tables
	specified. 
	Note: Since this program determines the structure of the DATABASE and querying
	depends on the structure the programmer is requested to have a look at example
	directories provided in the data/places directory to undersatand the appropriate
	structure of the directory.
	


