HttpServletRequest request of Jsp implicit object

HttpServletRequest request

The public interface class HttpServletRequest inherits from ServletRequest. The request sent by the client browser is encapsulated into an HttpServletRequest object. The object contains the client request information, including the requested address, requested parameters, submitted data, uploaded files, client ip and even client operating system. HttpServletResponse inherits the ServletResponse interface and provides methods related to the Http protocol. The main functions of these methods are to set HTTP status codes and manage cookies.

Domain objects can access attribute values ​​for sharing in the domain.

public void setAttribute(java.lang.String name,java.lang.Object value)public java.lang.Object getAttribute(java.lang.String name)public void removeAttribute(java.lang.String name)
public void setAttribute(java.lang.String name,java.lang.Object value)public java.lang.Object getAttribute(java.lang.String name)public void removeAttribute(java.lang.String name)
public void setAttribute(java.lang.String name,java.lang.Object value)public java.lang.Object getAttribute(java.lang.String name)public void removeAttribute(java.lang.String name)

Java training

Guess you like

Origin blog.csdn.net/msjhw_com/article/details/109065833