/** * Describe <code>doGet</code> method here. * * @param request a <code>HttpServletRequest</code> value * @param response a <code>HttpServletResponse</code> value * @exception IOException if an error occurs * @exception ServletException if an error occurs */ public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { ServletPrinter sp = null; sp = new ServletPrinter(response, "PubCommentAuth"); String to = request.getParameter("to"); String item = request.getParameter("itemId"); if ((to == null) || (to.equals("")) || (item == null) || (item.equals(""))) { sp.printHTMLheader("RUBiS ERROR: Authentification for comment"); sp.printHTML("No item or user identifier received - Cannot process the request<br>"); sp.printHTMLfooter(); return; } sp.printHTMLheader("RUBiS: User authentification for comment"); sp.printFile(Config.HTMLFilesPath + "/put_comment_auth_header.html"); sp.printHTML("<input type=hidden name=\"to\" value=\"" + to + "\">"); sp.printHTML("<input type=hidden name=\"itemId\" value=\"" + item + "\">"); sp.printFile(Config.HTMLFilesPath + "/auth_footer.html"); sp.printHTMLfooter(); }