KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > action > AddArtistAction


1 package action;
2
3 import formbean.ArtistForm;
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 AddArtistAction 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 ArtistForm();
23
24         request.setAttribute(mapping.getAttribute(), form);
25
26         saveToken(request);
27
28         return mapping.findForward("success");
29     }
30 }
31
Popular Tags