-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path6.jsp
29 lines (28 loc) · 1.06 KB
/
6.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
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@taglib prefix="a" uri="http://java.sun.com/jstl/core_rt" %>
<!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>
<center>
<form action="<%=request.getContextPath()%>/cont" method="post">
<input type="hidden" name="flag" value="update">
<a:set value="${sessionScope.state}" var="n"></a:set>
<a:set value="${sessionScope.country}" var="c"></a:set>
Country:-<select name="aaa">
<a:forEach items="${sessionScope.List}" var="j">
<a:if test="${c eq j.country}"><option value="${j.id}" selected="selected">${j.country}</option></a:if>
<a:if test="${c ne j.country}"><option value="${j.id}">${j.country}</option></a:if>
</a:forEach>
</select><br><br><br>
State:-
<input type="text" name="state" value="${n}">
<input type="submit">
</form>
</center>
</body>
</html>