ComposeAction.java :  » Chat » claros-chat-1.0 » org » claros » mini » actions » Java Open Source

Java Open Source » Chat » claros chat 1.0 
claros chat 1.0 » org » claros » mini » actions » ComposeAction.java
package org.claros.mini.actions;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import org.claros.mini.common.BaseLoggedAction;
import org.claros.mini.models.ComposeFormBean;

/**
 * @version   1.0
 * @author    Umut Gkbayrak
 */
public class ComposeAction extends BaseLoggedAction {

  public ActionForward myExecute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {

    ComposeFormBean bean = new ComposeFormBean();
    bean.setMessageBody("");
    request.getSession().setAttribute("ComposeFormBean", bean);
    request.getSession().setAttribute("attachments", null);

    return mapping.findForward("success");
  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.