1.
ognl
静态方法处理
<s:property
value="@com.e104.rd.util.DynaEnvConstants@getInt('ROWS_PER_PAGE')"/>
struts2.0.1
支持
struts2.2.3
默认不支持,需要修改struts.xml
<constant
name="struts.ognl.allowStaticMethodAccess" value="true"
/>
2. 参数传递的问题
var url =
'../Search/ResumeSearchAction_loadResumeList.action?pageNo=<s:property
value="pageNo"/>
';
var param = {
target :
url,
method : 'post',
form: "searchConditionForm",
div:
"resume_list_div"
}
<form
id="searchConditionForm" name="searchConditionForm" method="post"
action="">
<input type="hidden" name="pageNo" id="pageNo"
value="1">
。。。。。。。。。
</form>
url 后面跟pageNo
参数,form里有pageNo 参数,
struts2.0.1 支持,struts2.2.3 不支持,需要把url后参数删除,且struts2.2.3
参数传递要比前版严格
,
所以要测试,遇到参数传递的问题时候,再修改。
3.导入actions.xml;
struts2.0.1: <include file="**\actions.xml"/>
struts2.2.3:
<include
file="/**/actions.xml"/>
4.默认拦截器的名字修改:
struts2.0.1:<interceptor-ref
name="token-session">
struts2.2.3:<interceptor-ref
name="tokenSession">
5.
struts2.0.1
<result name="LOGOUT"
type="redirect-action">
struts2.2.3:
<result name="LOGOUT"
type="redirectAction">
遇到拦截器名字,result type名字不一致,可以去查看
struts2-core-2.2.3.jar/struts-default.xml
6.
<pao:FilterSelect id="jobExp.disTime_origin" name="jobExp.disTime_t"
source="DataCode_4"
filter="0"
locale="#session['test.locale']"
headerKey="0" headerValue="
请选择
"/>
更新成绿色部分
<pao:FilterSelect
id="jobExp.disTime_origin" name="jobExp.disTime_t"
source="DataCode_4"
filter="{0}"
locale="#session['test.locale']" headerKey="0" headerValue="
请选择
"/>
7.
然后就是
json
com.googlecode.jsonplugin.JSONUtil
需要替换
org.apache.struts2.json.JSONUtil
其他可参考官网
https://cwiki.apache.org/S2WIKI/troubleshooting-guide-migrating-from-struts-20x-to-21x.html#TroubleshootingguidemigratingfromStruts2.0.xto2.1.x-UpdateDependencies
分享到:
相关推荐
struts-2.0.1 源代码
Struts2.2.3需要的jar包。 其中包括: commons-fileupload-1.2.2.jar commons-io-2.0.1.jar commons-lang-2.5.jar commons-logging-1.1.1.jar freemarker-2.3.16.jar javassist-3.11.0.GA.jar ognl-3.0.1.jar struts...
chm格式的struts2 api,便于查询。
用于struts开发,搭建SSH项目必须jar包
struts2.0一个简单的入门实例 绝对让你初步了解struts2.0 了解初步配置 了解配置的步骤
commons-beanutils-1.7.0 commons-collections-3.1 commons-digester-2.0 commons-fileupload-1.2.2 commons-io-2.0.1 commons-lang-2.5 commons-logging-1.1.1 ...struts2-core-2.2.3 xwork-core-2.2.3
struts2-core-2.0.1.jar, struts2-core-2.0.11.1.jar, struts2-core-2.0.11.2.jar, struts2-core-2.0.11.jar, struts2-core-2.0.12.jar, struts2-core-2.0.14.jar, struts2-core-2.0.5.jar, struts2-core-2.0.6.jar,...
jcaptcha4struts2-2.0.1,jcaptcha4struts2-2.0.1的jar包
4.commons-io-2.0.1 5.commons-lang-2.5 6.commons-lang3-3.1 7.ognl-3.0.6 8.struts2-convention-plugin-2.3.15.1 9.struts2-core-2.3.15.1 10.xwork-core-2.3.15.1 11.struts2-json-plugin-2.3.8.jar
struts2-core-j4-2.0.1
struts2-api-2.0.1.jar.zip 文档 API
commons-fileupload-1.2.2.jar,commons-io-2.0.1.jar,commons-lang-2.5.jar,ezmorph-1.0.3.jar,freemarker-2.3.16.jar,javassist-3.11.0.GA.jar,json-lib-2.1-jdk15.jar,ognl-3.0.1.jar,struts2-core-2.2.3....
11.2.0.1升级到11.2.0.3.pdf11.2.0.1升级到11.2.0.3.pdf11.2.0.1升级到11.2.0.3.pdf
xwork-2.0.1.jar 和 struts2-core-2.0.6.jar 是 struts2 的核心jar包
dwr2.0.1apidwr2.0.1apidwr2.0.1apidwr2.0.1apidwr2.0.1apidwr2.0.1apidwr2.0.1apidwr2.0.1apidwr2.0.1apidwr2.0.1apidwr2.0.1apidwr2.0.1apidwr2.0.1api
commons-io-2.0.1.jar struts2-core-2.3.4.1.jar 【struts2核心功能包】 xwork-core-2.3.4.1.jar 【Xwork核心包】 ognl-3.0.5.jar 【Ognl表达式功能支持表】 commons-lang3-3.1.jar 【struts对java.lang包的...
NPOI2.0.1 dll .net里用到的dll..
struts环境下验证码组件的一个例子,基础入门级
rxandroid-2.0.1.aar
sangfor pshell v2.0.1