Listing 1 – home.jsp
<%@ 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>Sky Photo - Home</title>
</head>
<body>
<h1>Dashboard</h1>
</body>
</html>
Listing 2 – upload.jsp
<%@ 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>Sky Photo - Upload</title>
</head>
<body>
<h1>Upload A Photo</h1>
</body>
</html>
Requirement
- index.jsp should be accessible without any security filtering
- home.jsp should be accessible only to registered users
- upload.jsp should only be accessible to registered users
0 comments:
Post a Comment