Goal: To gain familiarity with the Session API and to learn how
to write some simple JSPs
-
Part A: Create a Servlet that creates a session. You could have the
Servlet only create a session when a successful login is achieved,
or create a session by default with any request. Store some data
in the session, and show that the data is persisted across requests
by redisplaying the data in a subsequent request. This can be done
by either using two different HTML forms, or providing links to
the user in the Servlet response.
-
Part B: Create a JSP that displays dynamic data when invoked. This means
that the content should depend on something that is available in the
request. For example, depending on what one of the request headers
are from the client, you could display different data. Or, you could
create a JSP that submits a form to itself and displays a response
based on the form submission.
Supply the application as a deployable war file. Test deploying it before
submitting it to make sure you have the format right. Place the source
files for the servlet in a src directory in the war file.
Grading Breakdown:
Item | Points |
Part A - configuration (web.xml) | 10 |
Part A - Proper use of session APIs | 30 |
Part A - Coding style, javadoc | 10 |
Part B - concept and implementation | 30 |
Part B - Coding style | 10 |
Proper Submission | 10 |
Total: | 100 |

