package com.action;
import com.opensymphony.xwork2.ActionSupport;
public class LoginAction extends ActionSupport{
private String userName;
private String password;
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public String login() throws Exception{
return "success";
}
public String language() throws Exception{
return "input";
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
struts2实现自主选择页面语言
共31个文件
jar:11个
properties:4个
xml:4个
5星 · 超过95%的资源 需积分: 9 34 下载量 77 浏览量
2015-06-03
19:23:23
上传
评论
收藏 4.88MB ZIP 举报
温馨提示
该项目主要用到了struts2的国际化,其中如何选择默认的页面语言则用到了i18n拦截器技术。
资源推荐
资源详情
资源评论
收起资源包目录
ChineseEnglishStruts2.zip (31个子文件)
ChineseEnglishStruts2
.project 1KB
WebContent
WEB-INF
lib
servlet-api.jar 173KB
javassist-3.7.ga.jar 531KB
struts2-dojo-plugin-2.3.1.2.jar 1.65MB
struts2-convention-plugin-2.2.1.jar 64KB
struts2-core-2.2.1.jar 755KB
commons-io-1.3.2.jar 86KB
commons-fileupload-1.2.1.jar 56KB
freemarker-2.3.16.jar 860KB
ognl-3.0.jar 224KB
xwork-core-2.2.1.jar 997KB
commons-logging-1.0.4.jar 37KB
web.xml 727B
index.jsp 659B
success.jsp 366B
META-INF
MANIFEST.MF 39B
src
loginResource_zh_CN.properties 237B
struts.xml 635B
com
action
LoginAction.java 581B
loginResource_en_US.properties 157B
.settings
org.eclipse.wst.jsdt.ui.superType.container 49B
org.eclipse.wst.common.project.facet.core.xml 345B
org.eclipse.jdt.core.prefs 364B
org.eclipse.wst.jsdt.ui.superType.name 6B
org.eclipse.wst.common.component 515B
.jsdtscope 503B
build
classes
loginResource_zh_CN.properties 237B
struts.xml 635B
com
action
LoginAction.class 976B
loginResource_en_US.properties 157B
.classpath 841B
共 31 条
- 1
资源评论
- hetianjiao2016-03-10很好的例子!
lyyyl_110
- 粉丝: 26
- 资源: 6
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功