The previous chapter focuses on the concept of built-in objects in jsp (the preferred choice for SUN enterprise-level applications). This article mainly describes some built-in object methods.
1,RequestObject methods:
☉GetAttribute (String name)ReturnNameAttribute Value.
☉GetAttributeNames ()ReturnRequestAll property names of the object.
☉GetCookies ()ReturnsCookiesObject.
☉GetHeader (String name)ObtainHTTPThe file header defined by the Protocol.
☉GetHeaders (String name)ReturnsRequest HeaderAll values.
☉GetMethod ()Obtain the method by which the client transmits data to the server.
☉GetParameter (String name)Obtain the parameter value sent from the client to the server.
☉GetParameterNames ()Obtain the names of all parameters sent from the client to the server.
☉GetParameterValue (String name)Obtains all values of a specified parameter.
☉GetProtocol ()Obtain the protocol name that the client uses to transmit data to the server.
☉GetQueryString ()Obtain the query string.
☉GetRequestURI ()Obtain the client address of the request string.
☉GetRemoteAddr ()ObtainIPAddress.
☉GetRemoteHost ()Obtain the client name.
☉GetServerName ()Obtain the name of the server.
☉GetServletPath ()