← Back to feed
Renewal·서른의 생활코딩

JSP Key Concepts 1

NS
normalstory
cover image

JSP Key Concepts 1


Directives: page, include, taglib

Scripts: Scriptlet <% %>, Expression <%= %>, Declaration <%! %>

Action Tags: include

        forward

        useBean

        setProperty

        getProperty

Built-in Objects: pageContext - My page: created first among built-in objects -> creates other built-in objects

                  Holds information, properties, and shared data of the JSP within that JSP.

                  (setAttribute, getAttribute, removeAttribute)

          request - Request: from browser/user

        response - Response: from server

        out - Creates buffer for holding response data

        session - Login information

        application - Shares all objects within the web app = servletContext

               (Refers to web.xml: (Eclipse project path/WEB-INF/web.xml): used in the application)

        config - Holds initialization reference information when the application starts within the servlet container.

             servletConfig can be obtained from pageContext.

            (Refers to web.xml: (Tomcat installation path/conf/web.xml): used in all web apps)

        page = JSP page: used with the "this" keyword

            + typed as Object so it can reference JSPs of other servlets as well.

              (Content written in JSP is converted to a servlet and stored in the service method.)

        exception - Exception object

This English version was translated by Claude.

친절한 찰쓰씨
Written by
친절한 찰쓰씨

Pleasant Charles — UI/UX researcher at AIT. Keeping notes on design, planning, and slow days here since 2010.