Package org.simplecart.webapp.forms

Examples of org.simplecart.webapp.forms.OrderForm


            ActionForm form,
            HttpServletRequest request,
            HttpServletResponse response) throws Exception {
       
        // cast my form to a useful Type
        OrderForm orderForm = (OrderForm) form;

        // get the session to store the new user object
        HttpSession session = request.getSession();
       
        Address orderAddress = new Address();
View Full Code Here


       
        // get the session to store the new user object
        HttpSession session = request.getSession();
       
        // cast form to appropriate type
        OrderForm billingForm = (OrderForm) form;
       
        // get the customer object from the session
        Customer customer = (Customer) session.getAttribute(Constants.LOGGED_IN_USER_KEY);
       
        // copy form-bean values to new Stake and Address objects
        CreditCardBillingDetails creditCardDetails = new CreditCardBillingDetails();
        creditCardDetails.setCreditCardType(CreditCardType.getInstance(billingForm.getCreditCardType()));
        creditCardDetails.setCreditCardExpirationMonth(billingForm.getCreditCardExpirationMonth());
        creditCardDetails.setCreditCardExpirationYear(billingForm.getCreditCardExpirationYear());
        creditCardDetails.setCreditCardNumber(billingForm.getCreditCardNumber());
        creditCardDetails.setCreditCardCVVSCode(billingForm.getCreditCardCVVSCode());
       
        // attache the address to this new customer
        customer.addBillingDetails(creditCardDetails);
       
        // get a DAO for the new Stake
View Full Code Here

TOP

Related Classes of org.simplecart.webapp.forms.OrderForm

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.