컴퓨터/JSP

[JavaSpring] application

peridott 2024. 7. 16. 15:48
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<h1>Application</h1>
	서블릿 컨테이너의 이름과 버전 : <%=application.getServerInfo() %><p/>
	01.1.request.html파일의 MIME type : 
				<%=application.getMimeType("01.1.request.html") %><p/>
	웹 어플리케이션의 url 경로명 : <%=application.getContextPath() %><p/>
	로컬에 저장되어 있는 경로명 : <%=application.getRealPath("/") %>
	<% application.log("application 로그 확인"); %>
</body>
</html>