KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > hutchison > at > webui > admin > struts > action > ForwardToUrlAction


1 /*
2  * $Header: /cvsroot/jdbforms/dbforms/contrib/guenter_wutzl/dbforms-struts/ForwardToUrlAction.java,v 1.3 2004/08/18 12:25:54 hkollmann Exp $
3  * $Revision: 1.3 $
4  * $Date: 2004/08/18 12:25:54 $
5  *
6  * DbForms - a Rapid Application Development Framework
7  * Copyright (C) 2001 Joachim Peer <joepeer@excite.com>
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public
11  * License as published by the Free Software Foundation; either
12  * version 2.1 of the License, or (at your option) any later version.
13  *
14  * This library is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  * Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with this library; if not, write to the Free Software
21  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22  */

23
24 /*
25  * Created on 01.07.2004
26  */

27 package com.hutchison.at.webui.admin.struts.action;
28
29 import org.apache.struts.action.Action;
30 import org.apache.struts.action.ActionForm;
31 import org.apache.struts.action.ActionForward;
32 import org.apache.struts.action.ActionMapping;
33
34 import javax.servlet.http.HttpServletRequest JavaDoc;
35 import javax.servlet.http.HttpServletResponse JavaDoc;
36
37
38
39 /**
40  * @author Guenther Wutzl www.milestonemedia.at
41  * This action forwards to the jsp-page given over the requestparameter
42  * "forward".
43  */

44 public class ForwardToUrlAction extends Action {
45    /**
46     * DOCUMENT ME!
47     *
48     * @param mapping DOCUMENT ME!
49     * @param form DOCUMENT ME!
50     * @param request DOCUMENT ME!
51     * @param response DOCUMENT ME!
52     *
53     * @return DOCUMENT ME!
54     *
55     * @throws Exception DOCUMENT ME!
56     */

57    public ActionForward onExecute(ActionMapping mapping,
58                                   ActionForm form,
59                                   HttpServletRequest JavaDoc request,
60                                   HttpServletResponse JavaDoc response)
61                            throws Exception JavaDoc {
62       String JavaDoc forward = request.getParameter("forward");
63
64       return new ActionForward(forward);
65    }
66 }
67
Popular Tags