1:58 pm - Tuesday June 27, 2017

Archive: Z-AJSP Codes Subscribe to Z-AJSP Codes

Implicit object exception tutorial

The Exception implicit object is of type java.lang.Throwable, to handle exception on jsp page make page directive isErrorPage to true and use exception implicit object to handle exception thrown on error page. <%@ page isErrorPage='true'...

Implicit object pageContext tutorial

The use of the pageContext is to include another resource or forward to another resource. Thus the following would forward from the current page to menu.jsp <% pageContext.forward("menu.jsp");%> <% pageContext.include("menu.jsp");%>

Implicit object page tutorial

Implicit object application tutorial

Implicit object config tutorial

Implicit object session tutorial

The session implicit object is an instance of javax.servlet.http.HttpSession, we can set the session true or false using page directive <% session.setAttribute(“key”,”value”); %>

Implicit object out tutorial

The out implicit object has a type of jsp.JspWriter. The out object can be used in a similar way to system.out is used in plain ordinary Java programs, i.e. <% out.print("Hello World");%>

Implicit object response tutorial

The response objects are the same as the parameters to doPost or doGet method in servlet and represent instances of HttpServletResponse. <% response.sendRedirect(“sam.jsp”);%>

Implicit object request tutorial

The request objects are the same as the parameters to doPost or doGet method in servlet and represent instances of HttpServletRequest. <% request.getParameter(“value”); %>

What is JSP?

What is JSP?

Types of Actions in JSP

Return types in JSP

Tag and body interface in JSP

Tag Support Class in JSP

Taglib in JSP

Tag handler in JSP

TLD(Tag library Descriptor) in JSP

Components of Custom Tags in JSP

Types of tags in JSP

What is a Custom Tag in JSP