JSP learning-JSP built-in objects

Source: Internet
Author: User

Request;

Abstruct string getattribute (string name) {}// return the attribute value of the specified name

Abstract void setattribute (string name, object) {}// Replace the value

Abstract enumeration getattributenames () {}// obtain the names of all attributes

Abstract string getcharacterencoding (){}//

Abstract int getcontentlength (){}//

Abstract string getcontenttype (){}//

Abstract string getparameter (string name) {}// gets the value of the given parameter name

Abstract emumeration getparameternames () {}// obtain the parameter names of all current requests

Public abstract string [] getparametervalues (string name) {}// retrieve all values of the specified parameter name

Public abstract cookie [] getcookies () {}// obtain all the cookies that can be found in the current request

Abstract httpsession getsession () {}// gets the session bound to the current request, and creates

Abstract string getquerystring () {}// obtain the URL request string

Chinese garbled characters: String STR = request. getparameter ("chineseword"); byte B [] = Str. getbytes ("ISO-8859-1"); STR = new string (B );

Response;

Abstract string getcharacterencoding (){}

Abstract void addcookie (cookie ){}

Abstract string encodingredirect (string URL ){}

Abstract string encodingurl ()[}

Abstract void senderror (INT code, string message ){}

Abstract void sendredirect (string URL) {}// redirect

Out;

Print ();

Println ();

Newline ();

Flush ();

Close ();

Clearbuffer ();

Clear ();

Getbuffersize ();

Isautoflush ();

Getremaining ();

Session

Void setattribute (string name, object Value ){}

Object getattribute (string name ){}

String GETID (){}

Application;

Config;

Pagecontext.

Page.

Exception;

Cookie;

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.