%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <% if(request.getSession().getAttribute("user")==null){ response.sendRedirect("main.jsp"); } %>