Homework 3
CS320, Fall 2006
Due: Saturday, November 4
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 CS 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 Online Album] (80pt)
Convert your online album servlet from Homework
2
to JSP. You do not
have to implement any new features, however,
your JSP implementation of the online album 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 servlets for these three specific operations: logout,
file upload (i.e. handing add/edit picture request), and file download.
All other operations and features must be implemented in JSP.
Good interface design will receive up to 25pt of extra credit.
[NOTES]
- Try use different JSP pages
for different "views", e.g. login view or album view or add picture
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 folders and
pictures will be lost after the user logs out, and that's all right.
We'll
deal with this in the next assignment.