Home>Article> What are the built-in objects and functions of jsp?

What are the built-in objects and functions of jsp?

Patricia Arquette
Patricia Arquette Original
2019-04-01 11:24:37 4286browse

This article mainly introduces jsp objects and functions to you. I hope it will be helpful to friends in need!

What are the built-in objects and functions of jsp?

JSP has a total of 9 built-in objects:

requestClient request, this request will Contains parameters from GET/POST requests;

responseThe response from the web page returned to the client;

pageContextThe properties of the web page are managed here;

sessionThe session related to the request;

application servletThe content being executed;

outOutput used to transmit responses;

Architectural components of config servlet;

page JSPThe web page itself;

exceptionUncaught exception for error web pages.

Function:

Pagerefers to the object that JSP is translated intoServletReference.

pageContextobject can be used to obtain other 8 built-in objects, and can also be used as a JSP domain scope object. The value stored in.pageContextis the current one. Scope of the page》

requestrepresents the request object, which can be used to obtain client information or can be used as a domain object. Userequestto save it. The data is valid within the scope of a request.

Sessionrepresents a session, which can be used to save the user's private information or as a domain object. The data saved usingsessionis stored in a session. The scope is valid

Application:represents the entire application scope. The data saved using this object is valid in the entirewebapplication.

Responseis the response object, which represents the response data from the server to the browser.

Out:JSPWriteris used to output content to the page The object

Config:refers toServletConfigwhich is used to obtain the configuration ofServletafter JSP is translated intoServletObject.

Exception: SetisErrorPage="true"in the page, and it can be used. It is a reference toThrowable. Used to obtain Page error message.

Related recommendations: "JSP Tutorial"

The above is the detailed content of What are the built-in objects and functions of jsp?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:What does stdio.h mean? Next article:What does stdio.h mean?