-
Notifications
You must be signed in to change notification settings - Fork 0
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
e787656
commit 040091c
Showing
14 changed files
with
220 additions
and
8 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 |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
/student_contact_info/ | ||
/student_info/ | ||
/uic_classes/ | ||
/vaccination_card/ |
Binary file modified
BIN
+742 Bytes
(120%)
build/classes/vaccination_card/dao/vaccination_cardDao.class
Binary file not shown.
Binary file modified
BIN
+181 Bytes
(110%)
build/classes/vaccination_card/service/vaccination_cardService.class
Binary file not shown.
50 changes: 50 additions & 0 deletions
50
src/main/java/student_contact_info/web/servlet/findAll.java
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,50 @@ | ||
package student_contact_info.web.servlet; | ||
|
||
import java.io.IOException; | ||
import java.util.List; | ||
|
||
import javax.servlet.ServletException; | ||
import javax.servlet.http.HttpServlet; | ||
import javax.servlet.http.HttpServletRequest; | ||
import javax.servlet.http.HttpServletResponse; | ||
|
||
import student_contact_info.service.student_contact_infoService; | ||
|
||
/** | ||
* Servlet implementation class findAll | ||
*/ | ||
|
||
//public class extends HttpServlet { | ||
// private static final long serialVersionUID = 1L; | ||
// | ||
// protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { | ||
// doPost(request,response); | ||
// } | ||
// | ||
// /** | ||
// * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response) | ||
// */ | ||
// protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { | ||
// UserService userservice = new UserService(); | ||
// try { | ||
// request.setAttribute("UserList", userservice.findall()); | ||
// } catch (InstantiationException | IllegalAccessException | ||
// | ClassNotFoundException e) { | ||
// e.printStackTrace(); | ||
// } | ||
// try { | ||
// List<Object> li = userservice.findall(); | ||
// for(int i = 0; i < li.size();i++){ | ||
// System.out.println(li.get(i).toString()); | ||
// } | ||
// | ||
// } catch (InstantiationException | IllegalAccessException | ||
// | ClassNotFoundException e) { | ||
// e.printStackTrace(); | ||
// } | ||
// | ||
// | ||
// request.getRequestDispatcher("/jsps/user/q1_list_users.jsp").forward(request, response); | ||
// } | ||
// | ||
//} |
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
/** | ||
* User object | ||
* | ||
* @author Aayush Makharia | ||
* @author | ||
* | ||
*/ | ||
public class vaccination_card { | ||
|
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
40 changes: 40 additions & 0 deletions
40
src/main/java/vaccination_card/web/servlet/displayDoseDate.java
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,40 @@ | ||
package vaccination_card.web.servlet; | ||
|
||
import java.io.IOException; | ||
import java.util.List; | ||
|
||
import javax.servlet.ServletException; | ||
import javax.servlet.http.HttpServlet; | ||
import javax.servlet.http.HttpServletRequest; | ||
import javax.servlet.http.HttpServletResponse; | ||
|
||
import vaccination_card.service.vaccination_cardService; | ||
|
||
/** | ||
* Servlet implementation class findAll | ||
*/ | ||
|
||
public class displayDoseDate extends HttpServlet { | ||
private static final long serialVersionUID = 1L; | ||
|
||
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { | ||
doPost(request,response); | ||
} | ||
|
||
/** | ||
* @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response) | ||
*/ | ||
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { | ||
vaccination_cardService userservice = new vaccination_cardService(); | ||
try { | ||
request.setAttribute("vaccination_cardList", userservice.findDate()); | ||
} catch (InstantiationException | IllegalAccessException | ||
| ClassNotFoundException e) { | ||
e.printStackTrace(); | ||
} | ||
|
||
|
||
request.getRequestDispatcher("/jsps/vaccination_card/displayDoseDate.jsp").forward(request, response); | ||
} | ||
|
||
} |
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,33 @@ | ||
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> | ||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> | ||
|
||
|
||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | ||
<html> | ||
<head> | ||
|
||
<title>Initialize Database</title> | ||
|
||
<meta http-equiv="pragma" content="no-cache"> | ||
<meta http-equiv="cache-control" content="no-cache"> | ||
<meta http-equiv="expires" content="0"> | ||
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> | ||
<meta http-equiv="description" content="This is my page"> | ||
<meta http-equiv="content-type" content="text/html;charset=utf-8"> | ||
<!-- | ||
<link rel="stylesheet" type="text/css" href="styles.css"> | ||
--> | ||
|
||
</head> | ||
|
||
<body> | ||
<h1>Initialize Database</h1> | ||
|
||
<p style="color: red; font-weight: 900">${msg }</p> | ||
<form action="<c:url value='/UserServletRegister'/>" method="post"> | ||
|
||
|
||
<input type="submit" value="Initialize DB"/> | ||
</form> | ||
</body> | ||
</html> |
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 |
---|---|---|
|
@@ -22,4 +22,4 @@ | |
</c:forEach> | ||
</table> | ||
</body> | ||
</html> | ||
</html> |
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,28 @@ | ||
<%@ page language="java" contentType="text/html; charset=UTF-8" | ||
pageEncoding="UTF-8"%> | ||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | ||
<html> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | ||
|
||
</head> | ||
<body> | ||
<h3 align="center"> Display Dose Date </h3> | ||
<table border="1" width="70%" align="center"> | ||
<tr> | ||
<th>First_Dose</th> | ||
<th>Second_Dose</th> | ||
</tr> | ||
<c:forEach items="${vaccination_cardList}" var="vaccination_card"> | ||
<tr> | ||
<td>${vaccination_card.first_dose}</td> | ||
<td>${vaccination_card.second_date}</td> | ||
</tr> | ||
</c:forEach> | ||
</table> | ||
</body> | ||
</html> | ||
|
||
|
||
|