20.JSP - yojulab/learn_servlets GitHub Wiki
- Java Server Pages (JSP) is a server-side programming technology
- Learn Refer : https://www.javatpoint.com/jsp-tutorial, https://www.tutorialspoint.com/jsp/index.htm
- refer : https://juyoungit.tistory.com/119
- JSP Model1
- JSP Model2(MVC)
<%! 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>
분류 | 설명 | 비고 |
---|---|---|
Code Block | <% %>, <%= %>, <%! %> | -- |
Directives | <%@ page %>, <%@ include ... %> | -- |
Expression Language (EL) | ${} | -- |
Handling Date | -- | -- |
- Implicit Objects(내장 객체) : tutorialspoint.
분류 | 설명 | 비고 |
---|---|---|
JSTL | Java Standard Tag Lib <%@ taglib ... %> | Core : forEach, if, ..., Formatting |
Client Request | -- | -- |
Cookies Handling | -- | -- |
https://www.tutorialspoint.com/jsp/jsp_session_tracking.htm | -- | -- |
분류 | 설명 | 비고 |
---|---|---|
multipart/form-data | @MultipartConfig, request.getPart().getInputStream() | -- |
request.getServletContext().getRealPath() | -- | -- |
Exception Handling | -- | -- |
Server Response | -- | -- |
pagination : startNum(page) = pageNum - (pageNum -1) % 5