Category: JSP


How to write form action in jsp how to write form action in jsp is an important question for every real time developer so let’s understand  how to write form action in jsp. ${pageContext.request.contextPath}/Servlet_URL_Name is use to call servlet in Read more…


What is exception in jsp exception is implicit object of java.lang.Throwable and it is use to  to print the exception This object can only be used in error pages. Example <%@ page isErrorPage=”true” %> <html> <body> Exception occured:<%= exception %> </body> Read more…


what is session object in jsp session is an implicit object of javax.servlet.http.HttpSession. Example javagf.jsp welcome.jsp javagf.jsp <%@page import=”java.util.ArrayList”%> <%@ page language=”java” contentType=”text/html; charset=ISO-8859-1″ pageEncoding=”ISO-8859-1″%> <!DOCTYPE html PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN” “http://www.w3.org/TR/html4/loose.dtd”> <html> <head> <meta http-equiv=”Content-Type” content=”text/html; charset=ISO-8859-1″> </head> Read more…


what is application implicit object in jsp application is implicit object of javax.servlet.ServletContext and The instance of ServletContext is created only once in web application. The data shared in ServletContext that is accessible for all pages in web app. Syntax  ServletContext Read more…


What is config object in jsp config is an implicit instance of javax.servlet.ServletConfig and it is used for getting configuration information for a particular JSP page. Example web.xml javagf.jsp welcome.jsp web.xml <?xml version=”1.0″ encoding=”UTF-8″?> <web-app> <servlet> <servlet-name>com.javagf.controllers.LoginHandler</servlet-name> <jsp-file>/welcome.jsp</jsp-file> </servlet> <servlet-mapping> <servlet-name>com.javagf.controllers.LoginHandler</servlet-name> <url-pattern>/login</url-pattern> Read more…


what is response object in jsp response is an implicit object in jsp which has some predefined methods to fulfill our requirement like sendRedirect() etc. Methods of response Implicit Object void setContentType(String type) void sendRedirect(String address) void addHeader(String name, String Read more…


what is request object in jsp request is implicit object of javax.servlet.HttpServletRequest that is use to get client information. Example javagf.jsp welcome.jsp javagf.jsp <%@page import=”java.util.ArrayList”%> <%@ page language=”java” contentType=”text/html; charset=ISO-8859-1″ pageEncoding=”ISO-8859-1″%> <!DOCTYPE html PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN” “http://www.w3.org/TR/html4/loose.dtd”> <html> <head> Read more…


what is out object in jsp out is an implicit object of javax.servlet.jsp.JspWriter class. So that we can use directly without object creation of JspWriter class. out object is use to display message to browser. Example <% out.print(“Hello JSP”); %>


what is jsp implicit objects In JSP technology there are total 9 implicit objects is there that are already created by JSP providers. JSP has provided the following list of implicit objects with their respective types. Objects Respective types out Read more…


jp:scriptlet tag in jsp jp:scriptlet is used to write java code inside jsp page. Syntax <jsp:scriptlet> ——- </jsp:scriptlet> Example <jsp:scriptlet> import java.sql.*; String data=null; int flag = 0; </jsp:scriptlet>






Full-stack web and mobile app development company Contact Us : Skype: indore.webcoder Email: info@w3sparks.com Sales: +91 8085506229