⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sendmailaction.java

📁 sso呵呵
💻 JAVA
字号:
package com.mdcl.mocha.jlcmcc.contract.action;

import java.util.ArrayList;
import java.util.List;

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 com.mdcl.mocha.bpm.webcommons.action.BPMBaseAction;
import com.mdcl.mocha.jlcmcc.emailnotification.JLCMCCEmailNotification;
import com.mdcl.mocha.jlcmcc.emailnotification.impl.JLCMCCEmailNotificationImpl;

/**
 * <strong>Title : SendMailAction<br>
 * </strong> <strong>Description : </strong><br>
 * <strong>Create on : 2007-10-20<br>
 * </strong>
 * <p>
 * <strong>Copyright (C) Mocha Software Co.,Ltd.<br>
 * </strong>
 * <p>
 *
 * @author zhanghd zhanghd@mochasoft.com.cn<br>
 * @version <strong>吉林移动BPM一期</strong><br>
 *          <br>
 *          <strong>修改历史:</strong><br>
 *          修改人 修改日期 修改描述<br>
 *          -------------------------------------------<br>
 *          <br>
 *          <br>
 */
public class SendMailAction extends BPMBaseAction {

	/*
	 * (non-Javadoc)
	 *
	 * @see org.apache.struts.actions.DispatchAction#execute(org.apache.struts.action.ActionMapping,
	 *      org.apache.struts.action.ActionForm,
	 *      javax.servlet.http.HttpServletRequest,
	 *      javax.servlet.http.HttpServletResponse)
	 */
	public ActionForward execute(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response) {

		String title = request.getParameter("title");
		String content = request.getParameter("content");
		String idStr = request.getParameter("boInsId");
		String[] boInsId = null;
		if (idStr != null)
			boInsId = idStr.split("##");

		JLCMCCEmailNotification emailManager = null;
		if (boInsId != null) {
			List list = new ArrayList();
			for (int i = 0; i < boInsId.length; i++)
				list.add(boInsId[i]);
			emailManager = new JLCMCCEmailNotificationImpl();
			emailManager.sendmail(list, title, content);
		}

		return null;
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -