view gnv/src/main/java/de/intevation/gnv/action/SelectFisAction.java @ 562:4df3347d6d1d

Removed trailing and leading Whitespaces from the Parametervalue which contains the XML-Document to avoid XML-Parsingerrors. gnv/trunk@668 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Tue, 09 Feb 2010 13:09:45 +0000
parents 002a4d38c16d
children d49e8695786c
line wrap: on
line source
package de.intevation.gnv.action;

import de.intevation.gnv.action.sessionmodel.SessionModel;
import de.intevation.gnv.action.sessionmodel.SessionModelFactory;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.log4j.Logger;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;


/**
 * @author Ingo Weinzierl <ingo.weinzierl@intevation.de>
 */
public class SelectFisAction extends ArtifactDatabaseActionBase {

    private static Logger logger = Logger.getLogger(SelectFisAction.class);

    @Override
    public ActionForward execute(
        ActionMapping       mapping,
        ActionForm          form,
        HttpServletRequest  request,
        HttpServletResponse response
    ) {
        logger.info("Goto fis selection.");

        try {

            SessionModelFactory fac = SessionModelFactory.getInstance();
            SessionModel sm         = fac.getSessionModel(request);

            sm.resetModel();

            return new FetchArtifactFactoriesAction().execute(
                mapping, form, request, response);
        }
        catch (Exception e) {
            logger.error(e, e);

            request.setAttribute(
                CommunicationKeys.REQUEST_EXCEPTION_MESSAGE_ID,
                e.getMessage());

            return super.getExceptionForward(mapping);
        }
    }
}
// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :

http://dive4elements.wald.intevation.org