Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abhiramborige/servlet-application
A Java-Maven Web Application
https://github.com/abhiramborige/servlet-application
database hacktoberfest java jdbc jdbc-database jsp jsp-servlet login maven maven-archetype mysql servlet-filter servletproject servlets servlets-jsp signup tomcat tomcat-server tomcat9
Last synced: 2 months ago
JSON representation
A Java-Maven Web Application
- Host: GitHub
- URL: https://github.com/abhiramborige/servlet-application
- Owner: Abhiramborige
- Created: 2021-04-16T08:12:01.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-26T13:29:53.000Z (almost 3 years ago)
- Last Synced: 2024-05-28T17:34:08.534Z (8 months ago)
- Topics: database, hacktoberfest, java, jdbc, jdbc-database, jsp, jsp-servlet, login, maven, maven-archetype, mysql, servlet-filter, servletproject, servlets, servlets-jsp, signup, tomcat, tomcat-server, tomcat9
- Language: Java
- Homepage:
- Size: 62.5 KB
- Stars: 10
- Watchers: 1
- Forks: 28
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Java Web Application
* Developed using Maven
* Uses Apache TomCat for deployment and testing
* Worked in Microsoft VS Code***
## Includes:
1. Basic Servlet concepts
* Servlet API (classes and interfaces)
* Servlet Interface and class methods
* Generic ServletRequest methods
* HttpServletRequest methods
* Generic ServletResponse methods
* HttpServletResponse methods
* RequestDispatcher interface
* sendRedirect() method
* ServletConfig interface
* ServletContext interface
* COntext and Init parameters
* Attribute Objects
2. Basic JSP concepts:
* JSP Tags
* JSP Directives
3. Maven Dependencies:
* junit
* javax.servlet-api
* mysql-connector-java
4. JDBC and MySQL concepts:
* Connection via driver
* ResultSet, Statement
* Creation
```mysql
CREATE DATABASE servlet_application ;
CREATE TABLE store_user(
Username varchar(30) NOT NULL PRIMARY KEY,
Password varchar(30) NOT NULL,
date_of_birth date NOT NULL,
date_register timestamp NOT NULL);
```
* Registration (Insertion operation)
```mysql
INSERT INTO store_user VALUES
(NULLIF(Username,''),
NULLIF(Password,''),
NULLIF(date_of_birth,''),
date_register);
```
* Authentication (Selection operation)
```mysql
SELECT * FROM store_user WHERE Username="username";
SELECT * FROM store_user WHERE Username="username" AND Password="password";
```
* Deletion (Dropping row)
```mysql
DELETE FROM store_user WHERE Username="username";
```
* Updating Passowrd (Update row)
```mysql
UPDATE store_user SET password="newPassword"
WHERE username="username" AND password="oldPassword";
```
5. Other concepts:
* Conditional statements
* Looping
* Styling with css
* Exceptional handling
* Modular programming
* Erros/Exceptional Handling
* Packages
* HTML rendering
* XML modifications.
6. Many more coming soon. Contributions are welcomed. Must integrate with the project, but not make it as seperate project.***
## Video for reference:***
## Must do things after cloning:
1. In database.java, update line no. 18 with the password of your MySQL database server.
2. In view.jsp, update line no. 20 with the password of your MySQL database server.
3. Then run using mvn commands (mvn clean, and then mvn package)### Hope it helps! 👍🙂