六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 40|回复: 0

struts2.0 升级到 struts2.1.2 更改的配置项

[复制链接]

升级  2%

11

主题

11

主题

11

主题

秀才

Rank: 2

积分
53
 楼主| 发表于 2013-1-23 02:43:13 | 显示全部楼层 |阅读模式
转自http://blog.csdn.net/xxxx1243/archive/2009/02/11/3876347.aspx


<script type="text/javascript"><!-- document.body.oncopy = function() {if (window.clipboardData) {setTimeout(function() {var text = clipboardData.getData("text"); if (text && text.length>300) {text = text + "\r\n\n本文来自CSDN博客,转载请标明出处:" + location.href;clipboardData.setData("text", text); }}, 100);}}// --></script><script class="blogstory"><!-- function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));keyit.focus();}// --></script>
Troubleshooting guide migrating from Struts 2.0.x to 2.1.x

<!-- [if gte vml 1]><v:shapetype id="_x0000_t75" coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f"> <v:stroke joinstyle="miter" /> <v:formulas>  <v:f eqn="if lineDrawn pixelLineWidth 0" />  <v:f eqn="sum @0 1 0" />  <v:f eqn="sum 0 0 @1" />  <v:f eqn="prod @2 1 2" />  <v:f eqn="prod @3 21600 pixelWidth" />  <v:f eqn="prod @3 21600 pixelHeight" />  <v:f eqn="sum @0 0 1" />  <v:f eqn="prod @6 1 2" />  <v:f eqn="prod @7 21600 pixelWidth" />  <v:f eqn="sum @8 21600 0" />  <v:f eqn="prod @7 21600 pixelHeight" />  <v:f eqn="sum @10 21600 0" /> </v:formulas> <v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect" /> <o:lock v:ext="edit" aspectratio="t" /></v:shapetype><v:shape id="_x0000_i1025" type="#_x0000_t75" alt="" style="width:12pt; height:12pt" mce_style="width:12pt; height:12pt"> <v:imagedata src="file:///C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\msohtml1\01\clip_image001.gif" mce_src="file:///C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\msohtml1\01\clip_image001.gif"  o:href="http://cwiki.apache.org/confluence/images/icons/emoticons/information.gif" /></v:shape><![endif]--><!-- [if !vml]--><!-- [endif]-->About theMigration guide

This guide describes how to migrate an existing Struts 2.0.x applicationto Struts 2.1.x. It is intended to be read from top to bottom but you mayskip-ahead to known problems and common exceptions. Please edit this page orprovide comments if you encounter additional issues.

 

Update Dependencies

Update your project dependences to use struts2-core-2.1.x and the pluginsstruts2-core-2.1.x.

<!-- [if gte vml 1]><v:shape id="_x0000_i1026" type="#_x0000_t75"   alt="" style="width:12pt;height:12pt" mce_style="width:12pt;height:12pt">   <v:imagedata src="file:///C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\msohtml1\01\clip_image001.gif" mce_src="file:///C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\msohtml1\01\clip_image001.gif"    o:href="http://cwiki.apache.org/confluence/images/icons/emoticons/information.gif" />  </v:shape><![endif]--><!-- [if !vml]--><!-- [endif]-->

There have been significant changes to the  Configuration API between 2.0 and 2.1. Third-party plugins for 2.0 may not be  compatible with 2.1.x.

您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表