Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: com/sol/ProcessCustomerDetails.java


1   /*
2    * Created on Jul 1, 2003
3    *
4    * To change the template for this generated file go to
5    * Window>Preferences>Java>Code Generation>Code and Comments
6    */
7   package com.sol;
8   
9   import javax.servlet.http.HttpServletRequest;
10  import javax.servlet.http.HttpSession;
11  import com.vinculum.engine.VCMworkflow;
12  
13  /**
14   * @author administrator
15   *
16   * To change the template for this generated type comment go to
17   * Window>Preferences>Java>Code Generation>Code and Comments
18   */
19  public class ProcessCustomerDetails {
20  
21    /**
22     * 
23     */
24    public ProcessCustomerDetails() 
25    {
26      super();
27    }
28    
29    public void handleForm( HttpServletRequest req )
30    {
31      HttpSession session = req.getSession();
32      
33      String surname = req.getParameter("Surname");
34      String Title = req.getParameter("Title");
35      String FirstName = req.getParameter("FirstName");
36      String Initials = req.getParameter("Initials");
37      String DocumentId = req.getParameter("DocumentId");
38      String Address = req.getParameter("Address");
39      String City = req.getParameter("City");
40      String Postcode = req.getParameter("Postcode");
41      String Country = req.getParameter("Country");
42      
43      CustomerDetails details = new CustomerDetails();
44      
45      details.setSurname(surname);
46      details.setTitle(Title);
47      details.setFirstName(FirstName);
48      details.setInitials(Initials);
49      details.setDocumentId(DocumentId);
50      details.setAddress(Address);
51      details.setCity(City);
52      details.setPostcode(Postcode);
53      details.setCountry(Country);
54      
55      VCMworkflow.register( session.getId(), details, "CustomerDetails", "NewResidentialCustomer" );
56    }
57  }