A webshop created with Java, JSP, Servlet, Oracle database, Bootstrap. (This project should be refactored, because it contains code duplications in DAO methods)
- Oracle database
- Tomcat server
- git clone project
- import project to IntelliJ (or to other IDE)
- change database configurations to own
- run Tomcat Server
- open browser and go to localhost:8081 (change the port 8081 to which is defined in Tomcat server config)
-
change database config in DatabaseUtil.java
-
setup Tomcat server in IntelliJ
Run
->Edit Configurations...
- on top left corner click on
+
button - select
Tomcat Server
Local
- under
Server
tab atApplication server
choose the downloaded Tomcat server - under
Deployment
click on the+
button located at bottom left of theDeploy at the server startup
block -> click onArtifact...
-> changeApplication context
value to/
src/main/java
|-- DAO - Data Access Object (get data from the database)
|-- bean - database entities
|-- filter - filter the request
| |-- BackServletFilter.java - run the correspond Servlet and method (CRUD operations with database)
| |-- ForeServletFilter.java - run ForeServlet and method
|-- servlet - process the request
|-- util
| |-- DatabaseUtil.java - util for create connection with the Oracle database
web
|-- WEB-INF
| |-- lib - contains jar files (e.g. ojdbc6.jar library for create connection with Oracle database)
| |-- web.xml
|-- *.jsp - JavaServer Pages, create dynamically generated web pages
|-- css - style files
|-- fonts
|-- image
|-- include - contains JavaServer Pages which is reusable (header, footer)
|-- js - javascript files