KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > action > AddGalleryAction


1 package action;
2
3 import formbean.GalleryForm;
4
5 import javax.servlet.http.HttpServletRequest JavaDoc;
6 import javax.servlet.http.HttpServletResponse JavaDoc;
7
8 import org.apache.struts.action.Action;
9 import org.apache.struts.action.ActionForm;
10 import org.apache.struts.action.ActionForward;
11 import org.apache.struts.action.ActionMapping;
12
13 public class AddGalleryAction extends Action {
14
15     public ActionForward execute(
16         ActionMapping mapping,
17         ActionForm form,
18         HttpServletRequest JavaDoc request,
19         HttpServletResponse JavaDoc response)
20         throws Exception JavaDoc {
21
22         form = new GalleryForm();
23
24         request.setAttribute(mapping.getAttribute(), form);
25
26         saveToken(request);
27
28         return mapping.findForward("success");
29     }
30 }
31
Popular Tags