MIDTERM
CS320, Fall 2004
Please upload your files using the online turnin server.
The files should include all the source code, documentation, and an
HTML file midterm.html which contains links to your JSP pages
on the CS server. Note that file uploading will be disabled
automatically after 3:10PM, and late turnin will not be
accepted.
[Problem Description]
CS491B class presentations are graded according to a
number of guidelines and evaluation criteria. In particular, a
presentation is graded in nine different aspects, and each aspect
receives a score from 1 to 5, with 5 being the highest. A presentation
also receives an overall score from 1 to 10, with 10 being the
highest. In this exam, you are going to help the instructor of CS491B,
yours
truly, implement a web application to record and analyze the grades for
CS491B class presentations.
[Implementation]
Your application should consists of two JSP pages, EvalForm.jsp
and Show.jsp, and one Java bean Records.java. No
scripting element is allowed in the JSP pages.
EvalForm.jsp. You may use EvalForm.html
as a template to create EvalForm.jsp. In particular, modify
EvalForm.html such that
- the action attribute of the form is set to EvalForm.jsp
itself.
- EvalForm.jsp uses a session scope bean Records.
- when a user clicks the Submit button, stores the name of the
student and the scores for the
presentation, which we will refer to as a record, in the Records
bean. In the case where there is already a record in the Records
bean
that has the same student name, the old scores will be replaced with
the new scores.
Show.jsp. Show.jsp shares the session scope bean Records
with
EvalForm.jsp, and when requested without any parameter, it
displays
two options:
When a user clicks on Show Records, Show.jsp
displays the records
currently stored in the bean, for example:
John
|
5
|
5
|
5
|
4
|
5
|
2
|
5
|
2
|
4
|
8
|
Joe
|
5
|
4
|
4
|
4
|
2
|
3
|
3
|
3
|
4
|
6
|
Jane
|
5
|
5
|
3
|
5
|
4
|
4
|
4
|
5
|
4
|
7
|
and when a user clicks on Show Statistics, Show.jsp
displays the Max, Min, and Average scores in each category, for example:
Max
|
5
|
5
|
5
|
5
|
5
|
4
|
5
|
5
|
4
|
8
|
Min
|
5
|
4
|
3
|
4
|
2
|
2
|
3
|
2
|
4
|
6
|
Average
|
5
|
4.67
|
4
|
4.67
|
3.67
|
3
|
4
|
3.33
|
4
|
7
|
Records.java. The implementation of the bean is completely up to
you, as long as the bean is sufficient to support the two JSP pages
described
above.
[Grading Criteria]
- EvalForm.jsp (10pt)
- Show.jsp (25pt)
- Records.java
- support for records display (35pt)
- support for max and min (15pt)
- extra credit: support for avg (+10pt)
- everything works correctly on the CS server (15pt)