Advantages of JSP
Advantages of JSP
Advantages of JSP
1. Scripting elements
a. declarative element-------------declare variables and methods
b. scriptlet elements---------------business logic
c. expression element--------------print message
2. directives
a. page directive
b. include directive
c. taglib directive
3. jsp action tags
a. jsp predefined action tags
i. forward action tag
ii. include action tag
iii. param action tag
iv. usebead action tag
v. setproperty action tag
vi. getproperty action tag…………………..etc
b. custom tags---------user defined tags
1.declarative element
using this we can declare the instance variables and instance methods
syntax
<%!
declare the instance variables and methods
%>
2.scriptlet element
by using this we can write the business logic.
syntax
<%
Implementing the business logic
%>
3.expression element
by using this we can print the results. (after processing the business logic we get the results)
syntax
<%=
Expression
%>
</center>
</html>