-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcheck2.jsp
38 lines (31 loc) · 940 Bytes
/
check2.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
<%@ page import="java.util.date.*,java.util.text.DateFormat.*,java.text.ParseException.*"%>
<%@page import="com.oreilly.servlet.*,java.sql.*,java.lang.*,databaseconnection.*,java.text.SimpleDateFormat,java.util.*,java.io.*,javax.servlet.*, javax.servlet.http.*" %>
<%@ page import = "java.util.Date,java.text.SimpleDateFormat,java.text.ParseException"%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<%
String location=(String)session.getAttribute("loc1");
String l1="INDIA",l2="ENGLAND",l3="USA",l4="AUSTRALIA";
if(l1.equals(location))
{
response.sendRedirect("vipindia.jsp");
}
if(l2.equals(location))
{
response.sendRedirect("vipengland.jsp");
}
if(l3.equals(location))
{
response.sendRedirect("vipusa.jsp");
}
if(l4.equals(location))
{
response.sendRedirect("vipaustralia.jsp");
}
%>
</body>
</html>