Hi!

Can someone tell me if the following code will actually add the required
header to the output?  Also is there a way to easily determine that said
header has been added?  Is the doPost() function the proper place for this?

public void doPost(HttpServletRequest req, HttpServletResponse res)
        throws ServletException, IOException
{
        // add header information
        res.setHeader("Entrust-SignData", "Name=Test");

        res.setContentType("text/html");

        PrintWriter out = res.getWriter();

        // create HTML form
        out.println("<HTML>");
        out.println("<HEAD>");
        out.println("<TITLE>Confirmation Page</TITLE>");
        out.println("</HEAD>");
        out.println("<BODY>");
        out.println("<STRONG>CONFIRM INFORMATION</STRONG>");
        out.println("</BODY>");
        out.println("</HTML>");

        out.close();
}

Thanks!

Marc

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to