Class SubmitReview

java.lang.Object
   |
   +----javax.servlet.GenericServlet
           |
           +----javax.servlet.http.HttpServlet
                   |
                   +----SubmitReview

public class SubmitReview
extends HttpServlet
This servlet prompts the Reviewer to submit his review and stores that in the database. The files for Comments to Authors, PC and overall Summary of the Review are stored in the file system in directory _REVIEW_REPOSITORY/paperId/reviewerID/. We aim to store these reviews in BLOBs finally.


Constructor Index

 o SubmitReview()

Method Index

 o doGet(HttpServletRequest, HttpServletResponse)
Generates the review form for the paper.
 o doPost(HttpServletRequest, HttpServletResponse)
Enters the inputted values in the review in the Database.
 o init(ServletConfig)

Constructors

 o SubmitReview
 public SubmitReview()

Methods

 o init
 public void init(ServletConfig config) throws ServletException
Overrides:
init in class GenericServlet
 o doGet
 public void doGet(HttpServletRequest req,
                   HttpServletResponse res) throws ServletException, IOException
Generates the review form for the paper. PaperId of paper is read from request passed. Invalid access to servlet is checked by reading reviewerId from session. If the review has been submitted before old scores given for all parameters are displayed for convenience.

Parameters:
req - HttpServletRequest - request
res - HttpServletResponse - response to the request
Overrides:
doGet in class HttpServlet
 o doPost
 public void doPost(HttpServletRequest req,
                    HttpServletResponse res) throws ServletException, IOException
Enters the inputted values in the review in the Database. Files uploaded are stored in directory _REVIEW_REPOSITORY/paperId/ReviewerEmail/Summary|CommentsToAuthor|CommentsToPC. Extensions to the files are stored in the database. A review is not accepted unless all files corresponding to a complete review are uploaded. Note: Class MultipartRequest from package com.oreilly.servlet is used for uploading of files.

Parameters:
req - HttpServletRequest
res - HttpServletResponse
Overrides:
doPost in class HttpServlet