[Jsp] JSP tags

Back-End/Jsp 2016. 7. 5. 15:32
donaricano-btn

JSP tag

- scriptlet tag

- expression tag

- declaration tag


1. scriptlet tag

<% java source code %>


1_1 Example

1) index.html

2) welcome.jsp


2. expression tag

- The code placed within Jsp expression tag is written to the output stream of the response

- It is mainly used to print the values of variable or method


<%= statement %>


2_1 Example


3. declaration tag

- The JSP declaration tag is used to declare fields and methods

- The code written inside the jsp declaration tag is placed outside the service() method  of auto generated servlet so it doesn't get memory at each request


<%! field or method declaration %>


3_1. Example


'Back-End > Jsp' 카테고리의 다른 글

[Jsp] Page directives  (0) 2016.07.06
[Jsp] Implicit Object_2  (0) 2016.07.06
[Jsp] Implicit Objects_1  (0) 2016.07.05
[Jsp] JSP API  (0) 2016.07.05
[Jsp] Cycle of Jsp  (0) 2016.07.04
블로그 이미지

리딩리드

,