2. 아래의 EL 객체를 예를 들어 설명하시오.
- pageContext
- pageScope
- sessionScope
- param
application.setAttribute("application_name", "application_value");
session.setAttribute("session_name", "session_value");
pageContext.setAttribute("page_name", "page_value");
request.setAttribute("request_name", "request_value");
${applicationScope.application_name} <br/>
${sessionScope.session_name} <br/>
${pageScope.page_name} <br/>
${requestScope.request_name} <br/>
<%
String id = request.getParameter("id");
String pw = request.getParameter("pw");
%>
${param.id}
${param.pw}
${param["id"]}
${param["pw"]}
- param: It calls the value from the name.