JSP Learning--jsp Built-in objects

Source: Internet
Author: User
Tags object object

Request

Abstruct string getattribute (string name) {}//Returns the property value of the specified name

abstract void setattribute (String name,object Object) {}//substitution value

Abstract enumeration Getattributenames () {}//Gets 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 () {}//Gets the parameter names of all the current requests

Public abstract string[] Getparametervalues (String name) {}//gets all values for the specified parameter name

Public abstract cookie[] GetCookies () {}//gets all cookies found in the current request

Abstract HttpSession getsession () {}//Gets the session of the current request binding, without creating a

Abstract String getquerystring () {}//Get URL request string part

Chinese garbled processing: string str = Request.getparameter ("Chineseword"); byte b[] = Str.getbytes ("iso-8859-1"); Str=new string (b);

Response

Abstract String getcharacterencoding () {}

abstract void Addcookie (Cookie 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.