Пример #1
0
  /**
   * Do a smart update, i.e: Check out httprequest, and overwrite any of the back/next/cancel/finish
   * values with a corresponding http request parameter, *provided* the request parameter is !=null.
   */
  public void smartUpdate() {

    HTTPUtil hru = new HTTPUtil();

    String vBack = hru.getParameterSingleValue(getParamBack());
    if (vBack != null) {
      this.back = vBack;
    }

    String vNext = hru.getParameterSingleValue(getParamNext());
    if (vNext != null) {
      this.next = vNext;
    }

    String vCancel = hru.getParameterSingleValue(getParamCancel());
    if (vCancel != null) {
      this.cancel = vCancel;
    }

    String vFinish = hru.getParameterSingleValue(getParamFinish());
    if (vFinish != null) {
      this.finish = vFinish;
    }
  } // smartUpdate