<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"%>

<sec:authorize access="isAuthenticated()">
    <sec:authentication property="principal.name" var="userName" />
      ${userName}님의 방문을 환영합니다.<br />
</sec:authorize>
<sec:authorize access="not isAuthenticated()">
        환영합니다. <br />
        회원가입 후, 이용하여 주시기 바랍니다.
</sec:authorize>    


<script type="text/javascript">
window.onload = function() {
    fn_myAlert(${unreadNotiCnt});
};
</script>
      
