Hello.

I need to include a new header into an HTML file to access some
functionality with an Entrust security product.   According to the Entrust
documentation, I must add the "Entrust-SignData" to teh HTTP header of the
confirmation document.  I've tried using the HttpServletResponse.addHeader
function to accomplish this (see code snippet below) but I don't seem to be
having any luck.  If anyone can point out something I might be missing, or
have incorrectly implemented, I would really appreciate the help.

        public void doPost(HttpServletRequest req, HttpServletResponse res)
                throws ServletException, IOException
        {

                // add Entrust header information
                res.addHeader("Entrust-SignData", "GeneratePost=ON");

                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("<TABLE border='0' width='100%'
cellspacing='0'>");
                out.println("<TR><TD colspan='2' align='middle'>");
                out.println("<STRONG>CONFIRM INFORMATION</STRONG>");
                out.println("</TD></TR>");
                out.println("<TR>");
                out.println("<TD align='left'><STRONG>FIELD</STRONG></TD>");
                out.println("<TD
align='right'><STRONG>VALUE</STRONG></TD>");
                out.println("</TR><TR><TD>&nbsp;</TD></TR>");
                out.println(strConfirmationFields);
                out.println("</TABLE>");
                out.println("<FORM name='SignatureForm' method='POST'>");
                out.println("<INPUT TYPE='hidden' name='GeneratePost'
value='ON'>");
                out.println(strSignatureFields);
                out.println("</FORM>");
                out.println("</BODY>");
                out.println("</HTML>");

                out.close();
        }

Thanks,

Marc Mac Donell
Application Developer
-----------------------------------------------------
EXOCOM Application Solutions Corp.
World Exchange Plaza
1400 - 45 O'Connor Street
Ottawa, Ontario     K1P 1A4
Tel: (613) 237-0257 ext. 274
[EMAIL PROTECTED]

___________________________________________________________________________
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