简体   繁体   English

1.2.9版中的Struts DispatchAction

[英]Struts DispatchAction in version 1.2.9

I'm working on a legacy system and have a question about DispatchAction class. 我在旧系统上工作,对DispatchAction类有疑问。 The project I'm working on using Struts version 1.2.9 . 我正在使用Struts版本1.2.9 I tried to upgrade it to version 2.0.0 but I got a problem with all my action classes. 我试图将其升级到2.0.0版,但是所有动作类都出现了问题。 It says DispatchAction cannot be resolved to a type . 它说DispatchAction cannot be resolved to a type Is this class removed from version 2? 此类是否已从版本2中删除? What can I use instead of it for a smooth transition? 我可以用什么代替它来平滑过渡?

There is essentially zero relationship between Struts 1 and Struts 2. Struts 1和Struts 2之间的关系基本上为零。

If you want to migrate to Struts 2 you should learn about Struts 2, and use a recent version (Struts 2.0.0 is quite old now). 如果要迁移到Struts 2,则应了解Struts 2,并使用最新版本(Struts 2.0.0现在已经很旧了)。 There are a few (somewhat outdated) S1 -> S2 migration guides, eg, https://cwiki.apache.org/confluence/display/WW/Migration+Guide 有一些(有些过时)的S1-> S2迁移指南,例如https://cwiki.apache.org/confluence/display/WW/Migration+Guide

But you'll want to take a step back and at least figure out what you're talking about, because you seem to have no idea what S2 is. 但是您需要退后一步,至少要弄清楚您在说什么,因为您似乎不知道S2是什么。 Not criticizing, just warning. 不批评,只是警告。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM