JSP : Scripting elements (Tag)

2020. 8. 5. 17:33·WEB/2020_webCamp

<JSP Scripting elements>

  • scriptlet tag <% java source code %> : 자바 소스 코드를 실행할 때 사용, 가장 많이 사용됨

 

  • expression tag <%= statement %> : 변수 또는 함수의 값을 출력할 때 사용, 따라서 out.print() 사용할 필요가 없다.
    • Ex. <%= "Welcome" + request.getParameter("name") %> -> 웹페이지에서  Welcome Kim 이 출력됨

 

  • declaration tag <%! field or method declaration %>: 변수 또는 메소드를 선언한다.
    • scriptlet tag와 차이점 :  method를 선언할 수 있고 declaration tag의 선언은 _jspService() method 밖에 위치한다.

 

 

 

https://www.javatpoint.com/jsp-scriptlet-tag

 

JSP Scriptlet tag - javatpoint

JSP Scriptlet tag with examples of session tracking, implicit objects, el, jstl, mvc, custom tags, file upload, file download, interview questions etc.

www.javatpoint.com

 

 

 

'WEB > 2020_webCamp' 카테고리의 다른 글

JSP : directives  (0) 2020.08.06
JSP : 9 Implicit Objects  (0) 2020.08.05
STS (Spring Tool Suite) : Github 연동하기  (0) 2020.08.04
STS (Spring Tool Suite) : 새 프로젝트 만들기  (0) 2020.08.04
STS (Spring Tool Suite) : 폰트 & 인코딩 형식 지정  (0) 2020.08.04
'WEB/2020_webCamp' 카테고리의 다른 글
  • JSP : directives
  • JSP : 9 Implicit Objects
  • STS (Spring Tool Suite) : Github 연동하기
  • STS (Spring Tool Suite) : 새 프로젝트 만들기
HBean_
HBean_
백엔드 개발자의 개발 로그 💻
  • HBean_
    개발_log
    HBean_
  • 전체
    오늘
    어제
    • 전체 (103)
      • WEB (49)
        • Spring (14)
        • AWS EC2 (6)
        • DB (3)
        • 2020_webCamp (25)
        • JPA (1)
      • Devops (2)
      • 보안 (4)
      • Git (6)
      • JAVA (13)
      • 자료구조 (2)
      • 알고리즘 (11)
      • 네트워크 (2)
      • SStudy (2)
      • 실전프로젝트2 (4)
      • 개발 일기 (1)
      • 개발툴 (4)
      • Intellij (2)
      • 이슈 (1)
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
  • 링크

    • GITHUB
  • 공지사항

  • 인기 글

  • 태그

    톰캣
    플러그인
    IntelliJ
    인텔리제이
    웹
    tomcat
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.2
HBean_
JSP : Scripting elements (Tag)
상단으로

티스토리툴바