






























































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!































































July – December 2020 Hasan Mahmud Department of Information and Communication Technology (ICT) Bangladesh University of Professionals (BUP)
JSP changed? JSP page (.jsp) Servlet (.java) Servlet Instance Servlet (.class) Yes No JSP Translation JSP Compilation HTTP response Servlet loaded and Initialized HTTP request Web Container
Syntactic elements: <%@ directives %> Interaction with the CONTAINER <%! declarations %> In the initialization of the JSP <% scriptlets %> In the service method <%= expressions %> In the service method
<%! String name=“hasan” %> <%! public String getName() { return name; } %>
Good Morning <%= getName() %>
<%@ DIRECTIVE {attribute=value} %> main attributes: <%@ page language=java session=true %> <%@ page import=java.awt.,java.util. %> <%@ page isThreadSafe=false %> <%@ page errorPage=URL %> <%@ page isErrorPage=true %> Directives
Standard actions involving beans
<%-- Comment --%> or ?
<%@ page errorPage="errorpage.jsp" %>
UseRequest
<% // Get the User's Name from the request out.println("Hello: " + request.getParameter("user") + ""); %>