20.JSP - yojulab/learn_servlets GitHub Wiki

life cycle of a JSP

Architectural Pattern

Main Functions

<%! int day = 3; %> 
<html> 
   <head><title>IF...ELSE Example</title></head> 
   
   <body>
      <% if (day == 1 || day == 7) { %>
         <p> Today is weekend</p>
      <% } else { %>
         <p> Today is not weekend</p>
      <% } %>
   </body> 
</html> 

Beginner Function

분류 설명 비고
Code Block <% %>, <%= %>, <%! %> --
Directives <%@ page %>, <%@ include ... %> --
Expression Language (EL) ${} --
Handling Date -- --

Intermediate Function

분류 설명 비고
JSTL Java Standard Tag Lib <%@ taglib ... %> Core : forEach, if, ..., Formatting
Client Request -- --
Cookies Handling -- --
https://www.tutorialspoint.com/jsp/jsp_session_tracking.htm -- --

Advanced Function

분류 설명 비고
multipart/form-data @MultipartConfig, request.getPart().getInputStream() --
request.getServletContext().getRealPath() -- --
Exception Handling -- --
Server Response -- --

case

pagination : startNum(page) = pageNum - (pageNum -1) % 5

⚠️ **GitHub.com Fallback** ⚠️