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

📄 mmseditaddslidaction.java

📁 MM7彩信对接网关示例
💻 JAVA
字号:
/*
 * Created on 2005-7-13
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package com.rainbow.mms.manage;

import org.apache.log4j.Logger;

import com.opensymphony.webwork.ServletActionContext;
import com.opensymphony.xwork.ActionContext;
import com.opensymphony.xwork.ActionSupport;
import com.rainbow.mms.common.MmsSmilPageUnitCollection;

/**
 * 向已有的彩信内容体中添加新的一桢
 * @author Rainbow MMS Group Leader —— TrWorks
 *
 */
public class MmsEditAddSlidAction extends ActionSupport {

	private static final long serialVersionUID = 1L;
	private Logger log = Logger.getLogger(MmsEditAddSlidAction.class);

	public String execute() throws Exception {
		String addSlidNo = ServletActionContext.getRequest().getParameter("addSlidNo");
		String timeInterval = ServletActionContext.getRequest().getParameter("timeInterval");
		System.out.println("addSlidNo:" + addSlidNo + "; timeInterval:" + timeInterval);
		
		MmsSmilPageUnitCollection collection = 
			(MmsSmilPageUnitCollection)ActionContext.getContext().getSession().get("mmsPageMapCollection");
		if (collection == null || addSlidNo == null ){
			log.error("MmsEditAddMimeAction excute function's input params error!");
			return ERROR;
		}

		if (true == collection.addSlid(Integer.parseInt(timeInterval), Integer.parseInt(addSlidNo))){
			return SUCCESS;
		}
		else{
			return ERROR;
		}
	}
}

⌨️ 快捷键说明

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