JSP Learning Note One

Source: Internet
Author: User

1, post submission data is implicit, get is passed in the URL (can look at your browser's address bar), to pass some data that do not need to be confidential.

2, with get, the size of the transmitted data is limited (note that there is no limit to the number of parameters), 2K, and Post does not have this limit.

3, also useful get when in the servlet to use the Doget method, with post will use Dopost method. This is different from the Java point of view when working with Get and post in JSP.

4, there is a point to note oh, the way to get parameters by get method and by post way some differences:
Post:request.getParameter ("");
Get:request. QueryString ("");

< note: When submitted with Get, I also use Request.getparameter () to get the parameters passed, although the request.setcharacterencoding ("Utf-8") has been set, but the Chinese parameters have been garbled. But I did not use the latter way to get parameters, I was directly to post, Chinese display is normal. >

The session is best used for non-shareable global variables.

Use of MyEclipse DB Browser:

Create a new SQL file to execute the statement in MyEclipse.

JSP Learning Note One

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.