Skip to main content

JSP tutorial Part 5:JSP Tags


JSP Tags
Tags in Jsp:

Tags in JSP can be categorized as
-comments
-Scripting elements
-Directive elements
-Action Elements
·         Anything other than the above mentioned four categories fall under template data.
·         This will include all HTML tags and text.
JSP Comments:
JSP comment marks text or statements that the JSP container should ignore. Following is the syntax of JSP comments:
<%-- comment here --%>
“Note: in HTMl <!- -comment here   --%> “
JSP Scripting Elements
Scripting elements are elements in the JSP page that contains java code. JSP contains 3 types of scripting elements as shown below:
1. Declarations:
–Format: <%! code %>
–Inserted into the body of the servlet class, outside of any existing methods
2. Expressions:
–Format: <%= expression %>
–Evaluated and inserted into the servlet’s output i.e., results in something
like out.print(expression) i.e. expression placed in jspServiceinside
out.print()
3. Scriptlets:
–Format: <% code %>
inserted into the servlet jspService() method

Comments

Popular posts from this blog

దోసకాయ పూర్ణం | cucumber curry

How to merge Objects in Javascript

 let person = {     firstName: 'Rocky',     lastName: 'g',     age: 23 }; let job = {     jobTitle: 'Angular Developer',     location: 'UK' }; let employee = {     ...person,     ...job }; console.log(employee);

క్యారెట్ ఊరగాయ | carrot pickle