Revision: 3829
http://openutils.svn.sourceforge.net/openutils/?rev=3829&view=rev
Author: diego_schivo
Date: 2012-03-20 09:01:40 +0000 (Tue, 20 Mar 2012)
Log Message:
-----------
SampleStrutsAction
Added Paths:
-----------
magnoliamodules/trunk/openutils-mgnlstruts11/src/main/java/it/openutils/mgnlstruts11/samples/
magnoliamodules/trunk/openutils-mgnlstruts11/src/main/java/it/openutils/mgnlstruts11/samples/SampleStrutsAction.java
Added: magnoliamodules/trunk/openutils-mgnlstruts11/src/main/java/it/openutils/mgnlstruts11/samples/SampleStrutsAction.java
===================================================================
--- magnoliamodules/trunk/openutils-mgnlstruts11/src/main/java/it/openutils/mgnlstruts11/samples/SampleStrutsAction.java (rev 0)
+++ magnoliamodules/trunk/openutils-mgnlstruts11/src/main/java/it/openutils/mgnlstruts11/samples/SampleStrutsAction.java 2012-03-20 09:01:40 UTC (rev 3829)
@@ -0,0 +1,47 @@
+/**
+ *
+ * Struts 1.1 module for Magnolia CMS (http://www.openmindlab.com/lab/products/mgnlstruts.html)
+ * Copyright(C) ${project.inceptionYear}-2012, Openmind S.r.l. http://www.openmindonline.it
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+package it.openutils.mgnlstruts11.samples;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.apache.struts.action.Action;
+import org.apache.struts.action.ActionForm;
+import org.apache.struts.action.ActionForward;
+import org.apache.struts.action.ActionMapping;
+
+
+/**
+ * @author diego
+ * @version $Id: $
+ */
+public class SampleStrutsAction extends Action
+{
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request,
+ HttpServletResponse response) throws Exception
+ {
+ return mapping.findForward("sample");
+ }
+}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|