TODAY JAVA SCHOOL

In java school, programming, design, computer general knowledge, web application, software, web services, social media, digital marketing, oops, concept of programming language, oops feature, console media, graphics medium, first programming, c, c ++ , Java, PHP, SQL, MySQL, HTML, HTML_5, J_query, JavaScript, Bootstrap, Framework, images with logos, examples, shared and explained.

https://www.amazon.in/b?node=26373545031&linkCode=ll2&tag=1234567801cdb-21&linkId=3b9882431b00409b44141e0344b35a15&language=en_IN&ref_=as_li_ss_tl

Breaking

Sunday 26 April 2020

JSP Request Implicit Object In Java | JSP Request Implicit Object Method

JSP request implicit object

The 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.

Example of JSP request implicit object

index.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);  
        %>  

Output

download image jsp request image

Fig: JSP Request Object 


No comments:

Post a Comment