package q02b.resultados.action;



import es.ejie.frmk.infraestructura.traza.Q70Traza;

import es.ejie.frmk.presentacion.operacion.paso.Q70ActionPasoOP;

import es.ejie.frmk.presentacion.sesiondatos.Q70ContextoEJIE;



import org.apache.struts.action.ActionErrors;

import org.apache.struts.action.ActionForm;

import org.apache.struts.action.ActionForward;

import org.apache.struts.action.ActionMapping;



import java.util.HashMap;



import javax.servlet.http.HttpServletRequest;

import javax.servlet.http.HttpServletResponse;





public class Q02bActionInicializarMapaResultados extends Q70ActionPasoOP {

    //Trazear

    //private static Q70Traza tr = Q70Traza.getSingleton();

    //private static final String COMPONENTE = "Q70_ROUTERCLASS";



    //Declaraci?n de mappings

    final static String MAPPING_IR_ALTA = "irDatosAltaResultados";



    //Declaraci?n de las variables que no se modificar?n

    final static String VARIABLE = "resultado";



    /**

     * @see es.ejie.frmk.presentacion.operacion.paso.ActionPasoOP#processOP(es.ejie.frmk.presentacion.sesiondatos.ContextoEJIE, org.apache.struts.action.ActionErrors, org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)

     */

    protected void processOP(Q70ContextoEJIE contexto, ActionErrors errores,

        ActionMapping mapping, ActionForm form, HttpServletRequest request,

        HttpServletResponse response) throws Exception {

        //Recogida de atributos del contexto de OP

        HashMap mapa = new HashMap();

        //Se resetea el HashMap del contexto

        contexto.set(VARIABLE, mapa);

    }



    /**

     * @see es.ejie.frmk.presentacion.operacion.paso.ActionPasoOP#processForward(es.ejie.frmk.presentacion.sesiondatos.ContextoEJIE, org.apache.struts.action.ActionErrors, org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)

     */

    protected ActionForward processForward(Q70ContextoEJIE contexto,

        ActionErrors errores, ActionMapping mapping, ActionForm form,

        HttpServletRequest request, HttpServletResponse response)

        throws Exception {

        //Se devuelve el mapping de salida

        return mapping.findForward(MAPPING_IR_ALTA);

    }

}

