JSP Overview, The chapter demonstrates about JSP Overview. JSP contains both Java and HTML in the same file. JSP is same like HTML , but the difference in JSP developer writes Java code with script tags. JSP can be easily managed because business logic is separated from presentation logic. But in Servlet technology, both will be mixed up. When JSP page is updated, there is no need to recompile and redeploy the project. Following are the packages will be used by JSP.
javax.servlet.jsp.tagext
javax.servlet.jsp
Elements of JSP
Description
JSP Overview, JSP will have elements, these elements are the backbone to the JSP, every JSP code will be combined with these elements. Following are the important assets of JSP.
Following is an example by using scriptlet tag.
[java]
<html>
<body>
<% out.print(4*5); %>
</body>
</html> [/java]
Now compile this code output will be 20.
Following are the Implicit Objects.