JSP syntax detailed

zhaozj2021-02-16  98

I. HTTP method: HTTP 1.1 supports 7 requests: GET, POST, HEAD, OPTIONS, PUT, DELETE, and TRACE. GET and POST are the most common ways in Internet applications.

* Note: The difference between GET and POST GET and POST are two similar request methods, but the results used are different. When using the GET request, the data will be sent as part of the URL (via URL encoding), which makes it possible to transmit the number of data that can be transmitted. When the request method POST is used, the data is transmitted through the stream, so there is no limit to the number of data that can be acquired.

Second, JSP instructions:

1. Page instruction: Used to define global properties in the JSP file. <% @ Page = "java"] [import = "{package.class | package. *}, ..."] [contentty = "type; charSet = charset"] [session = "true | false"] [ Buffer = "none | 8KB | SIZEKB"] [Autoflush = "true | false"] [isthreadsafe = "true | false"] [info = "text"] [errorpage = "relativeurl" [iesrrorpage = "true | false" ] [EXTENDS = "package.class"]%>

2. Include instruction: contains a static file. Basic syntax: <% @ include file = "pat"%>

I learned here today, at night and my colleagues out of Happy.

转载请注明原文地址:https://www.9cbs.com/read-13766.html

New Post(0)