$29
Using the hello2 servlet tutorial as an example, modify the code to provide a form that collects the first name, last name, email address and date of birth of a user. This tutorial is found in your glassfish installation [glassfish_home]\docs\javaee-tutorial\examples\web\servlet\. The [glassfish_home] is the folder where you installed glassfish following the JavaEE7 Environment Setup document found in the Week1 content.
For the response, display all of the information provided by the user that was entered into the collection form.
Format the output data as follows:
Thanks for completing our Customer Survey form on [today’s date and time]!
The data you entered was:
First name: [firstname]
Last name: [lastname]
Email address: [email address]
Birth date: [birthdate]
Note that you should use the current date and time as part of the output. So each time you run the application you will receive slightly different results.
You should use the Java API to look-up and determine how to extract the current date and time. An example output format for the date and time is: November 21, 2016 @12:15:30 PM. You can create your own unique format to display the date and time.
Submission requirements
Deliverables include all hello2 project files and a single word (or PDF) document. You should zip the hello2 project directory in its entirety for submission. The word (or PDF) document should clearly describe the changes you made to the hello2 project, include screen captures showing the successful compiling and running of your new hello2 project, a title page with your name and project number, IDE name and version, operating system , and instructions how to set up and run your hello2 project.
Each screen capture should be properly labeled, clearly indicating what the screen capture represents.
Submit your files to the Project 2 assignment area no later than the due date listed in your LEO classroom. You should include your name and P2 in your word (or PDF) file submitted (e.g. firstnamelastnameP2.docx or firstnamelastnameP2.pdf)
1
Grading Rubric:
The following grading rubric will be used to determine your grade:
Attribute
Meets
Does not meet
Modifies code
30 points
0 points
Modifies the code to provide a
Does not modify the code to
form that collects the first name,
provide a form that collects the
last name, email address and
first name, last name, email
date of birth of a user.
address and date of birth of a
user.
Formats the output data
30 points
0 points
Formats the output data as
Does not format the output data
described in the requirements.
as described in the requirements.
Includes date and time output
10 points
0 points
Uses the current date and time
Does not use the current date
as part of the output.
and time as part of the output.
Documentation and project
30 points
0 points
submission
Describes all of the changes
Does not describe all of the
made to the hello2 project.
changes made to the hello2
project.
Provides screen capture
demonstrating the successful
Does not provide screen capture
compilation and running on your
demonstrating the successful
platform.
compilation and running on your
platform.
Deliverables include all hello2
project files and a single word
Does not include all hello2
(or PDF) document.
project files and a single word
(or PDF) document as
Each screen capture is properly
deliverables.
labeled, clearly indicating what
the screen capture represents.
Each screen capture is not
properly labeled, or clearly
Word document or pdf includes
indicating what the screen
title page with your name and
capture represents.
project number, IDE name and
version, operating system, and
Word document or pdf does not
instructions how to set up and
include title page with your
run your project.
name and project number, IDE
name and version, operating
system, and instructions how to
set up and run your project.
2