Home >Common Problem >How do jsp built-in objects correspond to servlets?

How do jsp built-in objects correspond to servlets?

little bottle
little bottleOriginal
2019-05-13 12:35:275314browse

Servlet is the abbreviation of Java Servlet, called a small service program or service connector. Its main function is to browse and generate data interactively and generate dynamic Web content. JSP's full name is Java Server Pages, and its Chinese name is java server page. It is basically a simplified Servlet design and a dynamic web page technology standard.

How do jsp built-in objects correspond to servlets?

##Implicit objectDescriptionout After translation, it corresponds to the JspWriter object, which is internally associated with a PringWriter object request After translation, it corresponds to the HttpServletRequest/ServletRequest objectresponse After translation, it corresponds to HttpServletRespons/ServletResponse objectconfig After translation, it corresponds to ServletConfig objectapplication After translation, it corresponds to the ServletContext objectsession After translation, it corresponds to the HttpSession objectpageContext After translation, it corresponds to the PageContext object, which provides the encapsulation of JSP page resources and can set the page range attributesexception The translated corresponding Throwable object represents the exception object thrown by other JSP pages and will only appear on the JSP error page (the JSP page where isErrorPage is set to true)page After translation, it corresponds to this


The above is the detailed content of How do jsp built-in objects correspond to servlets?. 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