home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgLangD.iso / VCAFE.3.0A / Sample.bin / PHSuccess.java < prev    next >
Text File  |  1998-09-13  |  835b  |  41 lines

  1. package symantec.sourcebook.creditcheck;
  2. import java.io.*;
  3. import javax.servlet.*;
  4. import javax.servlet.http.*;
  5.  
  6. public class PHSuccess extends PageHandler
  7. {
  8.  
  9.    private PageData pageData;
  10.  
  11.    public PHSuccess()
  12.    {
  13.    }
  14.    
  15.    protected void read()
  16.    {
  17.    }
  18.  
  19.    protected void customize(Object pageDataObject) throws IOException
  20.    {
  21.         // save the page data for use by write, below
  22.         pageData = (PageData) pageDataObject;
  23.    }
  24.  
  25.    protected void write(HttpServletResponse response) throws IOException
  26.    {
  27.         StringBuffer cgiRequest = new StringBuffer(100);
  28.         
  29.         cgiRequest.append(pageData.successCGI);
  30.         cgiRequest.append("?orderId=");
  31.         cgiRequest.append(pageData.orderId);
  32.         
  33.         response.sendRedirect(cgiRequest.toString());
  34.  
  35.    }
  36.  
  37.  
  38.  
  39.  
  40.  
  41. }