Professional Documents
Culture Documents
Shorts
Shorts
1. Difference between Scriplet Tag (<% ... %>) and Declaration Tag (<%! ...
1
% >):
● S criplet Tag:
○ Embeds Java code within the JSP page.
○ Used for calculations, variable manipulation, and logic execution.
● Declaration Tag:
○ Declares variables, methods, and classes within the JSP page.
○ These elements have the same scope as local variables in a servlet.