SE452: Homework Assignment [20/20] ![]() ![]() |
Create an HTML form that submits a POST request to a new servlet. The form should contain text fields, check boxes, radio buttons, and combo or list boxes. At least one control should allow multiple selections.
Name the file form.html, and place it in the default directory of your webapp.
Write a new servlet that will handle the POST request (and a GET request, like in HW1). The servlet should read and do something with each request parameter. Examples could be performing a calculation with the data, or displaying it in a certain format. The output needs to be dependent on the input data, not the same every time. Be creative!
Finally, when submitting the homework, do the following:
set PATH=%PATH%;%JAVA_HOME%\bin
export PATH=$PATH:$JAVA_HOME/bin
in bash or ksh
jar cf myapp.war *
(where myapp is your
DePaul ID. For detail on the jar command, see
the JDK tools docs)
Questions or problems? Send me an email or post to the Discussion forum on the DL web site.