1 package action; 2 3 import formbean.ArtistForm; 4 5 import javax.servlet.http.HttpServletRequest ; 6 import javax.servlet.http.HttpServletResponse ; 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 request, 19 HttpServletResponse response) 20 throws Exception { 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 |