Java Web basics: Overview of Web application Input

Source: Internet
Author: User

 

Our previous content is the basic concept that Java Web application development requires. Next, we will introduce the Java Web input. Objective: l master the input methods of Java Web applications; l master the usage of common form elements; l master the use of JavaScript and regular expressions for common client verification. Main Content: l input mode l common form elements l use form Element L to verify the input information this introduction input mode. The input method is how the user submits the information to the server. All web applications are the same. You can use the following input method: l enter the application address in the address bar of a browser. For example, enter the http://2008.sina.com.cn in the address bar to visit the xinlang Network 2008 Beijing Olympic special website. If you want to pass additional information, you can use question marks. For example, in chapter 2nd, you can directly enter http: // 127.0.0.1: 8080/bookstore/login in the address bar? Userid = Zhang & userpass = Lisi, which is equivalent to entering Zhang and Lisi respectively in the user name and password of the input interface. L using hyperlinks or buttons, you can set hyperlinks on the page, click the hyperlink to send a request to the server, or pass parameters through question marks in the hyperlink. You can also add events for the buttons and then send requests to the server in the event processing code. Similarly, you can use the corresponding event processing code in the input box, tag, and drop-down box to process requests to the server. L form submission: This is the largest way to submit information. You can write the information in the form element or select to determine the value of the form element, then, the information is submitted to the server through form submission. The following section mainly describes information submission in 3rd methods. Other methods are not described separately. Last Lecture: Lecture 9 Web Application configurationNext Lecture: 11th basic form elementsLi xucheng csdn blog: Why? U= 124362 & C = 7be8ba2b6f3b6cc5

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.