📄 help.txt
字号:
Steps for running this program
----------------------------------------
A. DATABASE:
---------------------
1. Login the oracle database with
user name=system
password=manager
hoststring=(if any)
2. Type the following commands on sql> prompt
create user eris identified by eris;
grant connect,resource to eris;
3. Connect to eris user by typing the following command
connect eris/eris;
4. Type "show user" command to know whether you are connected to eris or not
5. Copy the entire content of "eris-tables.txt" file and paste it into the sql> prompt of eris user,
so that you will get all table structures in eris user;
6. You need not insert any data into the tables in eris user through sql> prompt.
If you run the project, the data you are entering on the screens will automatically inserted.
B. DSN(Data Source Name):
--------------------------------------
1. To run this project we need to create a DSN with the name "eris".
DSN is required to establish a connection between oracle database and JAVA program.
2. To create DSN follow the path:
Start -> Settings -> Controlpannel -> Administrative tools -> Data sources
click on ADD button.
select "ODBC for ORACLE Driver "
click Finish button
enter DSN name as "eris"
enter the hostname if required
click OK button
click on OK button
Datasource will be created.
Note: It is manditory to give the DSN name as eris. If you want to change the DSN name, You need to study all the
java source code files and update the DSN name, whreever it is occured, with your own DSN name.But this will
take much time. SO, it better to create the DSN with the name eris.
C. Directory structure to place the project files(It is required if all the files in the same directory):
---------------------------------------------------------------------------------------------------------------------------------
1. Create your own directory and place the project files in that directory as follows
I am writing the below steps by considering your directory name as "eris".
* Place all .html , .jsp(if any) files in eris directory
* Create a new folder called "WEB-INF"(capital letters is manditory) in eris directory
* Place web.xml file in WEB-INF folder
* Create a new folder in WEB-INF directory with the name "classes"(small letters only)
* Place all .class files in classes folder
note: It is enough to place .class files in this directory. If you want to place java files also in the
same directory, you can place them. No problem.
summary:
d:\> md eris
d:\>cd eris
d:\eris>copy <source> *.html
d:\eris>md WEB-INF
d:\eris>cd WEB-INF
d:\eris\WEB-INF>copy <source> web.xml
d:\eris\WEN-INF>md classes
d:\eris\WEB-INF>cd classes
d:\eris\WEB-INF\classes>copy <source> *.java *.class
2. After placing all the project related files in the above mentioned directory structure, you need to create a .war file
.war file creation:
----------------------
d:\eris> jar -cvf eris.war *.html WEB-INF
D. Deployment:
---------------------
1. Place the .war file in the following directory
for TOMCAT (Web server):
------------------------------------
c:\tomcat4.1\webapps\
for WEBLOGIC (Application server):
--------------------------------------------------
c:\bea\weblogic700\samples\server\config\applications
E. Run the webserver or application server as follows:
------------------------------------------------------------------------
for TOMCAT:
-------------------
c:\tomcat4.1\bin\startup.bat
for WEBLOGIC:
----------------------
c:\bea\weblogic700\samples\server\config\examples\startexamplesserver.cmd
F. Execution of the program:
--------------------------------------
Type the following on Internet Explorer
for TOMCAT:
-------------------
http://localhost/8080/eris/login.htm
for WEBLOGIC:
-------------------
http://localhost/7001/eris/login.htm
note: eris is the .war file name
G. Login window appears.Now you can proceed with the project.
all the best
====================================================================
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -