JSP read form elements

xiaoxiao2021-03-05  25

Job six JSP read form elements

1. Understanding the execution of server-side language

2. Understand the JSP deployment environment

3. Master JSP common page elements and built-in objects

4. Write a JSP read form

Exercise content

Step 1: Built a TEST folder under E: On the disc. 4-01.jsp files in the textbook to this folder. Then in the Tomcat configuration file server.xml, find

Directory = "Logs" prefix = "localhost_log." suffix = ". txt"

TimeStamp = "true" />

And add the following:

CrossContext = "true">

Restart Tomcat, then enter http: // localhost: 8080 / test / 4-01.jsp in your browser, check if it can be displayed normally.

Step 2: The following address is now open, open a 4-01.jsp file on the off-site server, compare the time displayed, understand the different mechanisms performed by the server side and client language.

http://10.22.128.173/jsp/4-01.jsp

Step 3: Please read the P129-P150 content in the textbook and copy sample code (download) on the book to the previous TEST folder (note to cancel the file readable attribute), and execute it in turn.

contents of homework

Job 1: Please download the Written HTML page (download) first, then write a JSP page to read the information submitted by this form. The effect can be referred to the link:

http://10.22.128.173/jsp/Register.htm

Tip: Submit the data in the multi-selection SELECT form to the JSP page. You can safely: request.getParameterValues ​​("SELECT Table Single") This function returns a string [] and then loops.

Job 2: Case 4-21.jsp program in the textbook P148 is incorrect, and cannot perform the description, please modify.

After completing, please pack the job one and the job two files together, package the file format. Finally, as at 24:00 on April 18.

====================== The following is the completed handle.jsp register.htm to receive the user's information to handle the handle.jsp handler name: Handle.jsp as follows:

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

New Post(0)