-
Notifications
You must be signed in to change notification settings - Fork 428
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ac82b97
commit cb2f1d8
Showing
78 changed files
with
1,870 additions
and
1,229 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry kind="src" path="src"/> | ||
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/> | ||
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/> | ||
<classpathentry kind="lib" path="C:/Tomcat 9.0/lib/servlet-api.jar"/> | ||
<classpathentry kind="lib" path="E:/Eclipse/apache-tomcat-8.0.22-windows-x64/apache-tomcat-8.0.22/lib/servlet-api.jar"/> | ||
<classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v9.0"> | ||
<classpathentry including="**/*.java" kind="src" output="target/classes" path="src"> | ||
<attributes> | ||
<attribute name="owner.project.facets" value="jst.web"/> | ||
<attribute name="optional" value="true"/> | ||
<attribute name="maven.pomderived" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jre1.8.0_25"> | ||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"> | ||
<attributes> | ||
<attribute name="owner.project.facets" value="java"/> | ||
<attribute name="module" value="true"/> | ||
<attribute name="maven.pomderived" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="output" path="build/classes"/> | ||
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"> | ||
<attributes> | ||
<attribute name="maven.pomderived" value="true"/> | ||
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="output" path="target/classes"/> | ||
</classpath> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
/build/ | ||
/target/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
activeProfiles= | ||
eclipse.preferences.version=1 | ||
resolveWorkspaceProjects=true | ||
version=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,32 @@ | ||
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0"> | ||
<wb-module deploy-name="TrainBook"> | ||
|
||
|
||
|
||
<wb-module deploy-name="TrainBook-0.0.1-SNAPSHOT"> | ||
|
||
|
||
<wb-resource deploy-path="/" source-path="/target/m2e-wtp/web-resources"/> | ||
|
||
|
||
|
||
<wb-resource deploy-path="/" source-path="/WebContent" tag="defaultRootSource"/> | ||
|
||
|
||
|
||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src"/> | ||
|
||
|
||
|
||
<property name="context-root" value="TrainBook"/> | ||
|
||
|
||
|
||
<property name="java-output-path" value="/TrainBook/build/classes"/> | ||
|
||
|
||
|
||
</wb-module> | ||
|
||
|
||
|
||
</project-modules> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<faceted-project> | ||
<runtime name="Apache Tomcat v9.0"/> | ||
<fixed facet="java"/> | ||
<fixed facet="jst.web"/> | ||
<fixed facet="wst.jsdt.web"/> | ||
<installed facet="jst.web" version="3.1"/> | ||
<installed facet="wst.jsdt.web" version="1.0"/> | ||
<installed facet="java" version="1.8"/> | ||
<installed facet="jst.web" version="3.1"/> | ||
</faceted-project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
disabled=06target | ||
eclipse.preferences.version=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,74 @@ | ||
### Just open the Oracle sql command prompt and login to administrator user and copy paste the following codes for creating dummy database: | ||
|
||
```SQL | ||
create user reservation identified by manager; | ||
ALTER SESSION SET "_ORACLE_SCRIPT"=TRUE; | ||
|
||
grant dba to reservation; | ||
CREATE USER RESERVATION IDENTIFIED BY MANAGER; | ||
|
||
commit; | ||
GRANT DBA TO RESERVATION; | ||
|
||
connect reservation/manager; | ||
COMMIT; | ||
|
||
create table admin6(uname varchar2(40) primary key,name varchar2(40), | ||
pword varchar2(50),mail_id varchar2(60),phone_no varchar2(12)); | ||
|
||
create table train6(tr_no number(10) primary key,tr_name varchar2(70), | ||
from_stn varchar2(20),to_stn varchar2(20),available number(5),fare number(5)); | ||
CONNECT RESERVATION/MANAGER; | ||
|
||
create table register(uname varchar2(40) primary key,pword varchar2(50), | ||
fname varchar2(40),lname varchar2(40), | ||
addr varchar2(100), phno varchar2(12), mailid varchar2(60)); | ||
CREATE TABLE "RESERVATION"."CUSTOMER" | ||
( | ||
"MAILID" VARCHAR2(40) PRIMARY KEY, | ||
"PWORD" VARCHAR2(20) NOT NULL, | ||
"FNAME" VARCHAR2(20) NOT NULL, | ||
"LNAME" VARCHAR2(20), | ||
"ADDR" VARCHAR2(100), | ||
"PHNO" NUMBER(12) NOT NULL | ||
); | ||
|
||
insert into admin6 values('admin','admin','admin','[email protected]','9874561230'); | ||
insert into admin6 values('shashi','shashi','admin','[email protected]','98323561230'); | ||
insert into train6 values(10101,'Jodhpur Exp','Howrah','Jodhpur',152,450); | ||
insert into train6 values(10102,'Mumbai Mail','Gaya','Mumbai',182,650); | ||
insert into register values('shashi','shashi','Shashi','Raj','Tekari, Gaya, Bihar',954745222,'[email protected]'); | ||
CREATE TABLE "RESERVATION"."ADMIN" | ||
( | ||
"MAILID" VARCHAR2(40) PRIMARY KEY, | ||
"PWORD" VARCHAR2(20) NOT NULL, | ||
"FNAME" VARCHAR2(20) NOT NULL, | ||
"LNAME" VARCHAR2(20), | ||
"ADDR" VARCHAR2(100), | ||
"PHNO" NUMBER(12) NOT NULL | ||
); | ||
|
||
commit; | ||
|
||
CREATE TABLE "RESERVATION"."TRAIN" | ||
( | ||
"TR_NO" NUMBER(10) PRIMARY KEY, | ||
"TR_NAME" VARCHAR2(70) NOT NULL, | ||
"FROM_STN" VARCHAR2(20) NOT NULL, | ||
"TO_STN" VARCHAR2(20) NOT NULL, | ||
"SEATS" NUMBER(4) NOT NULL, | ||
"FARE" NUMBER(6,2) NOT NULL | ||
); | ||
|
||
CREATE TABLE "RESERVATION"."HISTORY" | ||
( | ||
"TRANSID" VARCHAR2(30) PRIMARY KEY, | ||
"MAILID" VARCHAR2(40) REFERENCES "RESERVATION"."CUSTOMER"(MAILID), | ||
"TR_NO" NUMBER(10), | ||
"DATE" DATE, | ||
"FROM_STN" VARCHAR2(20) NOT NULL, | ||
"TO_STN" VARCHAR2(20) NOT NULL, | ||
"SEATS" NUMBER(3) NOT NULL, | ||
"AMOUNT" NUMBER(8,2) NOT NULL | ||
); | ||
|
||
COMMIT; | ||
|
||
INSERT INTO RESERVATION.ADMIN VALUES('[email protected]','admin','System','Admin','Demo Address 123 colony','9874561230'); | ||
INSERT INTO RESERVATION.CUSTOMER VALUES('[email protected]','shashi','Shashi','Raj','Kolkata, West Bengal',954745222); | ||
|
||
INSERT INTO RESERVATION.TRAIN VALUES(10001,'JODHPUR EXP','HOWRAH','JODHPUR', 152, 490.50); | ||
INSERT INTO RESERVATION.TRAIN VALUES(10002,'YAMUNA EXP','GAYA','DELHI', 52, 550.50); | ||
INSERT INTO RESERVATION.TRAIN VALUES(10003,'NILANCHAL EXP','GAYA','HOWRAH', 92, 451); | ||
INSERT INTO RESERVATION.TRAIN VALUES(10004,'JAN SATABDI EXP','RANCHI','PATNA', 182, 550); | ||
INSERT INTO RESERVATION.TRAIN VALUES(10005,'GANGE EXP','MUMBAI','KERALA', 12, 945); | ||
INSERT INTO RESERVATION.TRAIN VALUES(10006,'GARIB RATH EXP','PATNA','DELHI', 1, 1450.75); | ||
|
||
INSERT INTO RESERVATION.HISTORY VALUES('BBC374-NSDF-4673','[email protected]',10001,TO_DATE('02-FEB-2024'), 'HOWRAH', 'JODHPUR', 2, 981); | ||
INSERT INTO RESERVATION.HISTORY VALUES('BBC375-NSDF-4675','[email protected]',10004,TO_DATE('12-JAN-2024'), 'RANCHI', 'PATNA', 1, 550); | ||
INSERT INTO RESERVATION.HISTORY VALUES('BBC373-NSDF-4674','[email protected]',10006,TO_DATE('22-JULY-2024'), 'PATNA', 'DELHI', 3, 4352.25); | ||
|
||
COMMIT; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,31 +65,76 @@ STEP 2: Login to administrator User as: ```connect <username>/<password>``` | |
STEP 3 :Copy paste the following SQL Query: | ||
|
||
```SQL | ||
create user reservation identified by manager; | ||
|
||
grant dba to reservation; | ||
|
||
commit; | ||
|
||
connect reservation/manager; | ||
|
||
create table admin6(uname varchar2(40) primary key,name varchar2(40), | ||
pword varchar2(50),mail_id varchar2(60),phone_no varchar2(12)); | ||
|
||
create table train6(tr_no number(10) primary key,tr_name varchar2(70), | ||
from_stn varchar2(20),to_stn varchar2(20),available number(5),fare number(5)); | ||
|
||
create table register(uname varchar2(40) primary key,pword varchar2(50), | ||
fname varchar2(40),lname varchar2(40), | ||
addr varchar2(100), phno varchar2(12), mailid varchar2(60)); | ||
|
||
insert into admin6 values('admin','admin','admin','[email protected]','9874561230'); | ||
insert into admin6 values('shashi','shashi','admin','[email protected]','98323561230'); | ||
insert into train6 values(10101,'Jodhpur Exp','Howrah','Jodhpur',152,450); | ||
insert into train6 values(10102,'Mumbai Mail','Gaya','Mumbai',182,650); | ||
insert into register values('shashi','shashi','Shashi','Raj','Tekari, Gaya, Bihar',954745222,'[email protected]'); | ||
|
||
commit; | ||
ALTER SESSION SET "_ORACLE_SCRIPT"=TRUE; | ||
|
||
CREATE USER RESERVATION IDENTIFIED BY MANAGER; | ||
|
||
GRANT DBA TO RESERVATION; | ||
|
||
COMMIT; | ||
|
||
CONNECT RESERVATION/MANAGER; | ||
|
||
CREATE TABLE "RESERVATION"."CUSTOMER" | ||
( | ||
"MAILID" VARCHAR2(40) PRIMARY KEY, | ||
"PWORD" VARCHAR2(20) NOT NULL, | ||
"FNAME" VARCHAR2(20) NOT NULL, | ||
"LNAME" VARCHAR2(20), | ||
"ADDR" VARCHAR2(100), | ||
"PHNO" NUMBER(12) NOT NULL | ||
); | ||
|
||
CREATE TABLE "RESERVATION"."ADMIN" | ||
( | ||
"MAILID" VARCHAR2(40) PRIMARY KEY, | ||
"PWORD" VARCHAR2(20) NOT NULL, | ||
"FNAME" VARCHAR2(20) NOT NULL, | ||
"LNAME" VARCHAR2(20), | ||
"ADDR" VARCHAR2(100), | ||
"PHNO" NUMBER(12) NOT NULL | ||
); | ||
|
||
|
||
CREATE TABLE "RESERVATION"."TRAIN" | ||
( | ||
"TR_NO" NUMBER(10) PRIMARY KEY, | ||
"TR_NAME" VARCHAR2(70) NOT NULL, | ||
"FROM_STN" VARCHAR2(20) NOT NULL, | ||
"TO_STN" VARCHAR2(20) NOT NULL, | ||
"SEATS" NUMBER(4) NOT NULL, | ||
"FARE" NUMBER(6,2) NOT NULL | ||
); | ||
|
||
CREATE TABLE "RESERVATION"."HISTORY" | ||
( | ||
"TRANSID" VARCHAR2(30) PRIMARY KEY, | ||
"MAILID" VARCHAR2(40) REFERENCES "RESERVATION"."CUSTOMER"(MAILID), | ||
"TR_NO" NUMBER(10), | ||
"DATE" DATE, | ||
"FROM_STN" VARCHAR2(20) NOT NULL, | ||
"TO_STN" VARCHAR2(20) NOT NULL, | ||
"SEATS" NUMBER(3) NOT NULL, | ||
"AMOUNT" NUMBER(8,2) NOT NULL | ||
); | ||
|
||
COMMIT; | ||
|
||
INSERT INTO RESERVATION.ADMIN VALUES('[email protected]','admin','System','Admin','Demo Address 123 colony','9874561230'); | ||
INSERT INTO RESERVATION.CUSTOMER VALUES('[email protected]','shashi','Shashi','Raj','Kolkata, West Bengal',954745222); | ||
|
||
INSERT INTO RESERVATION.TRAIN VALUES(10001,'JODHPUR EXP','HOWRAH','JODHPUR', 152, 490.50); | ||
INSERT INTO RESERVATION.TRAIN VALUES(10002,'YAMUNA EXP','GAYA','DELHI', 52, 550.50); | ||
INSERT INTO RESERVATION.TRAIN VALUES(10003,'NILANCHAL EXP','GAYA','HOWRAH', 92, 451); | ||
INSERT INTO RESERVATION.TRAIN VALUES(10004,'JAN SATABDI EXP','RANCHI','PATNA', 182, 550); | ||
INSERT INTO RESERVATION.TRAIN VALUES(10005,'GANGE EXP','MUMBAI','KERALA', 12, 945); | ||
INSERT INTO RESERVATION.TRAIN VALUES(10006,'GARIB RATH EXP','PATNA','DELHI', 1, 1450.75); | ||
|
||
INSERT INTO RESERVATION.HISTORY VALUES('BBC374-NSDF-4673','[email protected]',10001,TO_DATE('02-FEB-2024'), 'HOWRAH', 'JODHPUR', 2, 981); | ||
INSERT INTO RESERVATION.HISTORY VALUES('BBC375-NSDF-4675','[email protected]',10004,TO_DATE('12-JAN-2024'), 'RANCHI', 'PATNA', 1, 550); | ||
INSERT INTO RESERVATION.HISTORY VALUES('BBC373-NSDF-4674','[email protected]',10006,TO_DATE('22-JULY-2024'), 'PATNA', 'DELHI', 3, 4352.25); | ||
|
||
COMMIT; | ||
``` | ||
|
||
### ====== Importing and Running the Project Through Eclipse EE =========== | ||
|
@@ -107,9 +152,9 @@ Step 5: Right Click On Project > Run As > Run On Server > Select Tomcat V8.0 > N | |
|
||
Step 6: Check Running The Site At <a Href="Http://localhost:8083/trainbook/">http://localhost:8083/trainbook/</a> | ||
|
||
Step 7: Default Username And Password For Admin Is "admin" And "admin" | ||
Step 7: Default Username And Password For Admin Is "admin@demo.com" And "admin" | ||
|
||
Step 8: Default Username And Password For User Is "shashi" And "shashi" | ||
Step 8: Default Username And Password For User Is "shashi@demo.com" And "shashi" | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.