Homework 3
CS320, Spring 2006


Due: Saturday, May 6

Please upload your files using 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]
[JSP Blog Manager] (75pt)

Convert your blog servlet from Homework 2 to JSP. You do not have to implement any new features, however, your JSP implementation of the bookmark manager must meet the following requirements:
<%
    if( request.getParameter("logout") != null )
    {
        session.invalidate();
        response.sendRedirect("Login.jsp");
        return;
    }  
%>
There are ways to get rid of this scriptlet too, but we'll have to wait until we discuss custom taglibs. Also note that comments and directives are not considered as scripting elements.
[Return Statement] (5pt)

Note that there is a return statement in the logout scriptlet above. In your hw3.html, briefly discuss why the return statement is necessary, and what would happen if the statement is removed.

[NOTES]