package com.hyj.actions;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
public class EmailAction extends ActionSupport{
private String receiver;
private String title;
private String content;
private int sign; //用于标记邮件是否已发送,sign=1则表示邮件已发送
@Override
public String execute() throws Exception {
// TODO Auto-generated method stub
System.out.println("邮件已发送!");
return SUCCESS;
}
public String save(){
ActionContext ac=ActionContext.getContext();
ac.getSession().put("receiver", receiver);
ac.getSession().put("title", title);
ac.getSession().put("content", content);
System.out.println("邮件已保存!");
return "save";
}
public String getReceiver() {
return receiver;
}
public void setReceiver(String receiver) {
this.receiver = receiver;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public int getSign() {
return sign;
}
public void setSign(int sign) {
this.sign = sign;
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
struts2动态调用之通配符
共29个文件
jar:10个
xml:4个
jsp:3个
需积分: 9 15 下载量 179 浏览量
2015-01-16
00:31:53
上传
评论
收藏 3.65MB RAR 举报
温馨提示
struts2动态调用之通配符,相当于是改进的method动态调用方法,减少对同一action不同method的多次配置
资源推荐
资源详情
资源评论
收起资源包目录
struts2动态调用之通配符.rar (29个子文件)
tongPeiFu
.project 2KB
.mymetadata 300B
src
struts.xml 470B
com
hyj
actions
EmailAction.java 1KB
WebRoot
WEB-INF
classes
struts.xml 470B
com
hyj
actions
EmailAction.class 2KB
lib
commons-fileupload-1.3.1.jar 67KB
commons-lang-2.4.jar 256KB
commons-io-2.2.jar 170KB
commons-lang3-3.2.jar 376KB
javassist-3.11.0.GA.jar 600KB
freemarker-2.3.19.jar 909KB
commons-logging-1.1.3.jar 61KB
struts2-core-2.3.20.jar 807KB
xwork-core-2.3.20.jar 656KB
ognl-3.0.6.jar 223KB
web.xml 805B
index.jsp 829B
images
but_bg.jpg 11KB
email.jsp 1KB
META-INF
MANIFEST.MF 36B
save.jsp 1KB
.myeclipse
.settings
org.eclipse.wst.jsdt.ui.superType.container 49B
org.eclipse.wst.common.project.facet.core.xml 252B
org.eclipse.jdt.core.prefs 364B
org.eclipse.wst.jsdt.ui.superType.name 6B
org.eclipse.wst.common.component 465B
.jsdtscope 500B
.classpath 529B
共 29 条
- 1
资源评论
knight8668
- 粉丝: 1
- 资源: 6
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功