Homework 3
CS320, Fall 2007
Due: Wednesday, October 31
Please upload your files to CSNS.
The files should include all the source code, documentation, and an
HTML
file hw3.html,
which
contains a link to your JSP page on the CS3 server. Note that file
uploading will be disabled automatically after 11:59PM
of the due date, so please turn in your work on time.
[Reading]
- Textbook - Chapter 10, 11,
12, 14, and 16.
- J2EE
Tutorial - Chapter 12 up to
"Using Custom Tags", and the sections
about JSTL Core and Functions in Chapter 14.
- JSTL
1.1 Tag References - Again, only
Core and Functions.
[JSP Movie Review Site] (70pt)
Convert your online movie review servlet from Homework
2
to JSP. You do not
have to implement any new features, however,
your JSP implementation of the movie review site must meet the following
requirements:
- All features described in Homework 1
and Homework
2 must work in this
implementation.
Failing to meet this requirement will incur up to 40pt credit penalty.
- No
scripting elements are allowed in the JSP pages. Note that scripting
elements include JSP Expression, Scriptlet, and JSP
Declaration.
- You may use a servlet to implement the logout operation.
All other operations and features must be implemented in JSP.
Good interface design will receive up to 20pt of extra credit.
[NOTES]
- Try use different JSP pages
for different "views", e.g. login view or movie index view or add movie
view
etc. Generally speaking, it
is easier to develop and maintain several simple JSPs than a single JSP
with complex flow control.
- Beans and other variables in
session scope or application scope are shared by all JSP
pages and servlets.
- If you use session scope beans, the user added ratings and reviews will be lost after the user logs out, and that's all right.
We'll
deal with this in the next assignment.