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