Mercurial > dive4elements > gnv-client
view gnv/src/main/java/de/intevation/gnv/action/CreateChartAction.java @ 967:c7f8a9b4b006
Improved parsing i18n values of chart/histogram options (issue289).
gnv/trunk@1129 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Wed, 26 May 2010 17:03:29 +0000 |
parents | 0441e78cd900 |
children | 33198e55371c |
line wrap: on
line source
package de.intevation.gnv.action; 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; import de.intevation.gnv.action.sessionmodel.SessionModel; import de.intevation.gnv.action.sessionmodel.SessionModelFactory; /** * This controller is called to display charts.<br> * An attribute 'chart' on the request object is activated which inserts an * image calling a chart output of the server. * * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> */ public class CreateChartAction extends DescribeUIAction { /** * the logger, used to log exceptions and additonaly information */ private static Logger logger = Logger.getLogger(CreateChartAction.class); /** * Constructor */ public CreateChartAction() { super(); } @Override public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { logger.debug("Create chart."); SessionModel sm = SessionModelFactory.getInstance().getSessionModel( request); sm.setDiagrammOptions(null); request.setAttribute("chart", true); return super.execute(mapping, form, request, response); } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :