Database project
note that: regarding Student DB Utility, responsible for interfacing with the database using JDBC code, and this is a common design pattern, DAO(data accessor object)
list student
Create Student.java
Create StudentDBUtil.java
Create StudentControllerServlet.java
Create JSP page: list-student.jsp
note that:
what is div tag used for ?
The <div> tag is nothing more than a container unit that encapsulates other page elements and divides
the HTML document into sections. Web developers use <div> elements to group together HTML elements and
apply CSS styles to many elements at once.
how to depoly css file ?
<head>
<title>Student Tracker App</title>
<link type="text/css" rel="stylesheet" href="css/style.css">
</head>
how to add welcome files or specify some files as welcome page ?
add some configuration in the WEB-INF/web.xml
...
<welcome-file-list>
<welcome-file>StudentControllerServlet</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
</web-app>
Add Student
update list-students.jsp
create HTML form for new student
update StudentControllerServlet
update StudentDbUtil