91-9990449935 0120-4256464 |
JSP request implicit objectThe JSP request is an implicit object of type HttpServletRequest i.e. created for each jsp request by the web container. It can be used to get request information such as parameter, header information, remote address, server name, server port, content type, character encoding etc. It can also be used to set, get and remove attributes from the jsp request scope. Let's see the simple example of request implicit object where we are printing the name of the user with welcome message. Example of JSP request implicit objectindex.html<form action="welcome.jsp"> <input type="text" name="uname"> <input type="submit" value="go"><br/> </form> welcome.jsp<% String name=request.getParameter("uname"); out.print("welcome "+name); %> OutputOther topics in JSP implicit ObjectsExample of Response implicit Object Example of config implicit object Example of application implicit object Example of session implicit object Example of pageContext implicit object Example of page implicit object Example of exception implicit object |