source: ether_statistics/service/implementation/com/medias/megapoli/struts/actions/InitNewSetAction.java @ 569

Last change on this file since 569 was 569, checked in by vmipsl, 12 years ago

Nouveau projet

File size: 930 bytes
Line 
1package com.medias.megapoli.struts.actions;
2
3import javax.servlet.ServletException;
4import javax.servlet.http.HttpServletRequest;
5import javax.servlet.http.HttpServletResponse;
6
7import org.apache.struts.action.Action;
8import org.apache.struts.action.ActionForm;
9import org.apache.struts.action.ActionForward;
10import org.apache.struts.action.ActionMapping;
11import com.medias.megapoli.struts.forms.MetadataForm;
12
13/**
14 * @author combaz
15 *
16 * Created on 22 févr. 2005
17 */
18public class InitNewSetAction extends Action {
19        public ActionForward execute(ActionMapping mapping,ActionForm form,
20                        HttpServletRequest request, HttpServletResponse response)
21                throws ServletException {
22                String target = "failure";
23
24                if(form != null) {
25                        MetadataForm mform = (MetadataForm) form;
26                        String cat = (String) request.getParameter("categorie");
27                        mform.init(cat);
28                        target = "success";
29                }
30
31                return (mapping.findForward(target));
32        }
33}
Note: See TracBrowser for help on using the repository browser.