日期:2014-05-20 浏览次数:20875 次
package com.qian.actions;
import java.util.Map;
import org.apache.taglibs.standard.tag.common.core.ParamSupport;
import org.omg.CORBA.Request;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import com.qian.biz.ReceiveBIZ;
import com.qian.vo.SMSendVO;
public class LtDxTSAction extends ActionSupport {
    // MainListener ml=new MainListener();
    SMSendVO sms = new SMSendVO();
    ReceiveBIZ biz = new ReceiveBIZ();
    public SMSendVO getSms() {
        return sms;
    }
    public void setSms(SMSendVO sms) {
        this.sms = sms;
    }
    public String execute() throws Exception {
        // ml.start();
        if (!sms.getUsername().trim().equals("")
                && !sms.getPassword().trim().equals("")) {
            if (sms.getUsername().equals("ltdx")
                    && sms.getPassword().equals("ltdx")) {
                if (sms.getPhone() != null || sms.getSpNumber() != null) {
                    String content=(String) parmas.get(sms.getSM_Content());
                    biz.receiveLTDX(sms.getPhone(), sms.getSpNumber(), sms
                            .getSM_Content(), sms.getMotime());
                    return "success";
                }
            } else {
                System.out.println("用户名密码错误");
                return "namepwderror";
            }
        } else {
            System.out.println("用户名密码不能为空");
            return "namepwdempty";
        }
        return "bzd";
    }
}