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

Quick Search    Search Deep

Source code: com/sol/ProcessProductDetails.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 ProcessProductDetails {
20  
21    /**
22     * 
23     */
24    public ProcessProductDetails() {
25      super();
26      // TODO Auto-generated constructor stub
27    }
28  
29    public void handleProductDetails(HttpServletRequest req)
30    {
31      HttpSession session = req.getSession();
32  
33      ProductDetails details = new ProductDetails();
34      
35      details.setMsisdn(req.getParameter("msisdn"));
36      details.setQty(new Integer(req.getParameter("quantity")).intValue());
37      details.setTariffName(req.getParameter("tariff"));
38      details.setMobileName(req.getParameter("phoneType"));
39      
40      VCMworkflow.register( session.getId(), details, "ProductDetails", req.getParameter("processName") );
41    }
42  }