KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > blandware > atleap > webapp > action > core > group > ListGroupsAction


1 /*
2  * Copyright 2005 Blandware (http://www.blandware.com)
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package com.blandware.atleap.webapp.action.core.group;
17
18 import com.blandware.atleap.webapp.action.core.BaseAction;
19 import org.apache.struts.action.ActionForward;
20 import org.apache.struts.action.ActionMapping;
21 import org.apache.struts.action.ActionForm;
22
23 import javax.servlet.http.HttpServletRequest JavaDoc;
24 import javax.servlet.http.HttpServletResponse JavaDoc;
25
26 /**
27  * <p><a HREF="ListGroupsAction.java.htm"><i>View source</i></a></p>
28  *
29  * @author Roman Puchkovskiy <a HREF="mailto:roman.puchkovskiy@blandware.com">
30  * &lt;roman.puchkovskiy@blandware.com&gt;</a>
31  * @version $Revision: 1.2 $ $Date: 2006/03/10 17:10:25 $
32  * @struts.action path="/core/group/list"
33  * name="groupForm"
34  * roles="core-group-list"
35  * validate="false"
36  * @struts.action-forward name="listGroups"
37  * path=".core.group.list"
38  */

39 public class ListGroupsAction extends BaseAction {
40     /**
41      * @param mapping The ActionMapping used to select this instance
42      * @param form The optional ActionForm bean for this request (if any)
43      * @param request The HTTP request we are proceeding
44      * @param response The HTTP response we are creating
45      * @return an ActionForward instance describing where and how
46      * control should be forwarded, or null if response
47      * has already been completed
48      */

49     public ActionForward execute(ActionMapping mapping, ActionForm form,
50                                  HttpServletRequest JavaDoc request, HttpServletResponse JavaDoc response) {
51
52         // save transaction token in request
53
saveToken(request);
54         return mapping.findForward("listGroups");
55     }
56 }
57
Popular Tags