Exemplo n.º 1
0
  private org.apache.struts.action.ActionForward _cerrarSesion(
      org.apache.struts.action.ActionMapping mapping,
      org.apache.struts.action.ActionForm form,
      javax.servlet.http.HttpServletRequest request,
      javax.servlet.http.HttpServletResponse response)
      throws java.lang.Exception {
    org.apache.struts.action.ActionForward forward = null;

    es.pode.modificador.presentacion.configurar.nombre.ConfigurarNombreControllerFactory
        .getConfigurarNombreControllerInstance()
        .cerrarSesion(mapping, (CrearModificacionContinuarFormImpl) form, request, response);
    forward = mapping.findForward("modificaciones.pendientes");

    return forward;
  }
Exemplo n.º 2
0
  private org.apache.struts.action.ActionForward __selectAction(
      org.apache.struts.action.ActionMapping mapping,
      org.apache.struts.action.ActionForm form,
      javax.servlet.http.HttpServletRequest request,
      javax.servlet.http.HttpServletResponse response)
      throws java.lang.Exception {
    final java.lang.String value =
        java.lang.String.valueOf(
            es.pode.modificador.presentacion.configurar.nombre.ConfigurarNombreControllerFactory
                .getConfigurarNombreControllerInstance()
                .selectAction(
                    mapping, (CrearModificacionContinuarFormImpl) form, request, response));

    if (value.equals("Continuar")) {
      return _crear(mapping, form, request, response);
    }
    if (value.equals("Cancelar")) {
      return _cerrarSesion(mapping, form, request, response);
    }

    // we take the last action in case we have an invalid return value from the controller
    return _cerrarSesion(mapping, form, request, response);
  }