jsp Implicit objects request object in JSP


Example

used to get request information such as parameter, header information, remote address, server name, server port, content type, character encoding.

Index.html

  <form action="req.jsp">  
    <input type="text" name="username">  
    <input type="submit" value="go"><br/>  
    </form>

req.jsp

<%   
String name=request.getParameter("username");  
out.print("welcome "+name);  
%>