Package com.ateam.webstore.ui.forms

Examples of com.ateam.webstore.ui.forms.OrderShippingForm


   * @return
   */
  public FormSubmission processOrderShipppingRequest() {
   
    l.finer("->");
    OrderShippingForm osf;
   
    try {
      osf = getOrderShippingRequest();
      Orders order = (Orders) req.getSession().getAttribute(SESSION_ATTRIBUTE_ORDER);
     
      order.setShippingCode(osf.getShippingCode());
      order.setAddress(osf.getAddress());

      //FormSubmission fs = new FormSubmission();
      osf.setSuccess(true);
      osf.setResultView(getOrderPaymentView());

    } catch (Exception e) {
      l.log(Level.WARNING, "Failed to get shipping details", e);
      osf = new OrderShippingForm();
      osf.setResultView(getOrderShippingView("Failed to process shipping request", null));
    }
   
    l.finer("<-");
    return osf;
  }
View Full Code Here


  /**
   * Retrieve shipping options from the submitted form
   * @return
   */
  public OrderShippingForm getOrderShippingRequest() {
    OrderShippingForm osf = new OrderShippingForm();
   
    //Get the selected addr
    AddressHandler ah = new AddressHandler(req);
    osf.setAddress(ah.getUserAddress());
   
    //Get the selected shipping code
    ShippingCodeHandler sch = new ShippingCodeHandler(req);
    osf.setShippingCode(sch.getShippingCode());
   
    return osf;
  }
View Full Code Here

TOP

Related Classes of com.ateam.webstore.ui.forms.OrderShippingForm

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.