01: package org.claros.mini.actions;
02:
03: import javax.servlet.http.HttpServletRequest;
04: import javax.servlet.http.HttpServletResponse;
05: import org.apache.struts.action.ActionForm;
06: import org.apache.struts.action.ActionForward;
07: import org.apache.struts.action.ActionMapping;
08:
09: import org.claros.mini.common.BaseLoggedAction;
10: import org.claros.mini.models.ComposeFormBean;
11:
12: /**
13: * @version 1.0
14: * @author Umut Gökbayrak
15: */
16: public class ComposeAction extends BaseLoggedAction {
17:
18: public ActionForward myExecute(ActionMapping mapping,
19: ActionForm form, HttpServletRequest request,
20: HttpServletResponse response) throws Exception {
21:
22: ComposeFormBean bean = new ComposeFormBean();
23: bean.setMessageBody("");
24: request.getSession().setAttribute("ComposeFormBean", bean);
25: request.getSession().setAttribute("attachments", null);
26:
27: return mapping.findForward("success");
28: }
29: }
|