Ë µë µservlet (slave »)

Source: Internet
Author: User

1. zookeeper servlet Ê × ~~~~úapplication ö~~~~~~~servlet. jar
2 .?
Import javax. servlet. http. HttpServletRequest;
Import javax. servlet. http. HttpServletResponse;
Import javax. servlet. http. HttpServlet;
Import javax. servlet. ServletException;
Import java. io. IOException;
Import java. io. PrintWriter; // â ¾ äimport **********************************
3. ******* Ï Â servlet öð µä~~~~~~~£ó **********
A) protected void service (HttpSerlvetRequest req, HttpServletResponse res) throws ServletException, IOException {}
 ¹ û ±» overwrite á~£%%%%*****ü²» áµ*****doxxx method =£
B) protected void doGet (HttpSerlvetRequest req, HttpServletResponse res) throws ServletException, IOException {}
Ø valid values 1 £° safe and idempotent. 2 £° Only ASCII (text) data can be sent to server with GET method. 3 £° easy to bookmarks.
Ö÷ Ò ª × Ó £ £°» añé ¡ý £ »?
C) protected void doPost (HttpSerlvetRequest req, HttpServletResponse res) throws ServletException, IOException {}
Ø please wait 1 £° not safe and idempotent. 2 disallow bookmarks.
Ö÷ Ò ª × Ó ó £ £° '«ä äform data £ ;***************************************** {************************************************
» Ó Ò» Ð ¶ «Î Ï Â 'î Ô ½ ² 2 ° É

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.