01: /* Copyright (c) 2001 - 2007 TOPP - www.openplans.org. All rights reserved.
02: * This code is licensed under the GPL 2.0 license, availible at the root
03: * application directory.
04: */
05: package org.vfny.geoserver.action.data;
06:
07: import org.apache.struts.action.Action;
08: import org.apache.struts.action.ActionForm;
09: import org.apache.struts.action.ActionForward;
10: import org.apache.struts.action.ActionMapping;
11: import org.apache.struts.action.DynaActionForm;
12: import org.vfny.geoserver.config.DataConfig;
13: import java.io.IOException;
14: import javax.servlet.ServletException;
15: import javax.servlet.http.HttpServletRequest;
16: import javax.servlet.http.HttpServletResponse;
17:
18: public class SLDWizardAction extends Action {
19: public ActionForward execute(ActionMapping mapping,
20: ActionForm form, HttpServletRequest request,
21: HttpServletResponse response) throws IOException,
22: ServletException {
23: String typeName = "";
24: typeName = request.getSession().getAttribute(
25: DataConfig.SELECTED_FEATURE_TYPE).toString();
26:
27: DynaActionForm myForm = (DynaActionForm) form;
28: myForm.set("typeName", typeName);
29:
30: return mapping.findForward("sldWizard");
31: }
32: }
|