forked from kishanrajput23/Java-Projects-Collections
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProject.jsp
108 lines (103 loc) · 2.86 KB
/
Project.jsp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<%@page import="org.pk.resume.builder.beans.Projects"%>
<%@page import="java.util.ArrayList"%>
<%@page import="org.pk.resume.builder.dao.UserService"%>
<%@page import="org.pk.resume.builder.session.ProjectSessionConstant"%>
<%@page import="org.pk.resume.builder.constants.GlobalConstants"%>
<%@page
import="org.pk.resume.builder.session.AchievementSessionConstant"%>
<%@page import="org.pk.resume.builder.beans.Achievements"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!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=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<%
UserService us = new UserService();
ArrayList<Projects> projects = GlobalConstants.projects;
%>
<jsp:include page="Menu.jsp"/>
<fieldset>
<legend>Achievements</legend>
<table style="text-align: center; width: 100%;" align="center" border="1" cellspacing="0">
<tr>
<th>Sr No</th>
<th>Title</th>
<th>Front End</th>
<th>Back End</th>
<th>Inputs</th>
<th>Outputs</th>
<th>Description</th>
</tr>
<%
if(projects != null && !projects.isEmpty())
{
for(int i=0; i<projects.size();i++)
{
Projects project = projects.get(i);
%>
<tr>
<td><%=i+1%></td>
<td><%=project.getTitte()%></td>
<td><%=project.getFrontEnd()%></td>
<td><%=project.getBackEnd() %></td>
<td><%=project.getInputs()%></td>
<td><%=project.getOutputs()%></td>
<td><%=project.getDescription()%></td>
</tr>
<%
}}
%>
</table>
<br>
<form method="post" action="AddProjects.jsp">
<table>
<tr>
<td>Title of Project</td>
<td><input type="text" name="<%=ProjectSessionConstant.TITLE%>"></td>
</tr>
<tr>
<td>Guide of Project</td>
<td><input type="text"
name="<%=ProjectSessionConstant.GUIDE%>"></td>
</tr>
<tr>
<td>Front End</td>
<td><input type="text"
name="<%=ProjectSessionConstant.FRONT_END%>"></td>
</tr>
<tr>
<td>Back End</td>
<td><input type="text"
name="<%=ProjectSessionConstant.BACK_END%>"></td>
</tr>
<tr>
<td>Input</td>
<td><input type="text"
name="<%=ProjectSessionConstant.INPUTS%>"></td>
</tr>
<tr>
<td>Output</td>
<td><input type="text"
name="<%=ProjectSessionConstant.OUTPUTS%>"></td>
</tr>
<tr>
<td>Description</td>
<td><input type="text"
name="<%=ProjectSessionConstant.DESCRIPTION%>"></td>
</tr>
<tr>
<td></td>
<td colspan="2"><input type="submit" value="Add" name="next"/></td>
<td colspan="2"><input type="submit" value="Next" name="next" /></td>
<td></td><td></td><td></td>
<td><input type="reset" value="Reset" /></td>
</tr>
</table>
</form>
</fieldset>
</body>
</html>