-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathProfile.jsp
94 lines (61 loc) · 2.46 KB
/
Profile.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
<%@ include file = 'header.jsp' %>
<%@page import = "java.util.*"%>
<body>
<%ArrayList<String> userdetails = (ArrayList<String>) request.getAttribute("userdetails");%>
<h2>User details</h2>
<form method='post' action='SaveCars?action=1'>
<%
int count =0;
%>
<%while (count<userdetails.size()){%>
<table>
<tr>
<td>
<p><label for='productId'> email ID: </label>
<td> <input name='prodId' id='prodId' value='<%out.print(userdetails.get(count+1)); %>' type='text'/></p></td>
</td>
</tr>
<tr>
<td>
<p><label for='name'>Name:</label>
<td><input name='name' id='name' value='<%out.print(userdetails.get(count)); %>' type='text'/></p></td>
</td>
</tr>
<tr>
<td>
<p><label for='brandName'>Address:</label>
<td><input name='brandName' id='brandName' value='<%out.print(userdetails.get(count+2)); %>' type='text'/></p></td>
</td>
</tr>
<tr>
<td>
<p><label for='model'>Phone Number:</label>
<td><input name='model' id='model' value='<%out.print(userdetails.get(count+3)); %>' type='text'/></p></td>
</td>
</tr>
<tr>
<td>
<p><label for='price'>City:</label>
<td><input name='price' id='price' value='<%out.print(userdetails.get(count+4)); %>' type='text'/></p></td>
</td>
</tr>
<tr>
<td>
<p><label for='mileage'>State:</label>
<td><input name='mileage' id='mileage' value='<%out.print(userdetails.get(count+5)); %>' type='text'/></p></td>
</td>
</tr>
<tr>
<td>
<p><label for='productionYear'> ZipCode:</label>
<td>
<input name='productionYear' id='productionYear' value='<%out.print(userdetails.get(count+6)); %>' type='text' /></p>
</td>
</td>
</tr>
<% count = count +7;
}%>
</table>
</form>
</body>
<%@ include file = 'footer.jsp' %>