论坛首页 Java版 Struts

Struts v2.0.1 BETA Release

浏览 7837 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
最后更新时间:2006-11-09
看了一下下载的代码,几乎就是webwork2.x改了个package名字弄过去的,theme, pojo的form,action, interceptor, tag这些基本的元素和WW是一摸一样的,从WW转到struts2的学习成本就是0了...

引用

The Apache Struts project is pleased to announce the availability of
the Struts 2.0.1 BETA release
[http://struts.apache.org/download.cgi#struts201].

Apache Struts 2 is an elegant, extensible framework, well suited for
enterprise-ready Java web applications. The framework is designed to
streamline the full development cycle, from building, to deploying, to
maintaining applications over time.

Apache Struts 2 was originally known as WebWork 2. After working
independently for several years, the WebWork and Struts communities
joined forces to create Struts2. This new version of Struts is simpler
to use and closer to how Struts was always meant to be.

* Build!
o Easy startup - A Maven archetype, template application, and
bootstrap tutorial help jumpstart new projects.
o Improved Design - All framework classes are based on interfaces.
Core interfaces are HTTP independent.
o Enhanced Results - Unlike ActionForwards, Struts2 Results can
actually help prepare the response.
o Enhanced Tags - Struts2 tags don't just output data, but provide
stylesheet-driven markup, so that we can create consistent pages with
less code.
o Stateful Checkboxes - Struts2 checkboxes do not require special
handling for false values.
o Easy cancel handling - The Struts2 Cancel button can go directly
to a different action.
o POJO forms - No more ActionForms! We can use any JavaBean we like
or put properties directly on our Action classes. No need to use all
String properties!
o POJO Actions - Any class can be used as an Action class. Even the
interface is optional!
o Easy Spring integration - Struts2 Actions are Spring-aware. Just
add Spring beans!
o First-class AJAX support - The AJAX theme gives interactive
applications a boost.

* Deploy!
o QuickStart - Configuration files are reloadable so many changes
can be made on the fly without restarting a web container.
o Easy plugins - Framework extensions can be added by dropping in a
JAR. No manual configuration required! Bundled plugins add support for
JavaServer Faces, JasperReports, JFreeChart, Tiles, and more ...
o Easy portlets - Automatic portlet support allows portal and
servlet deployments with no code changes.

* Maintain!
o Easy-to-test Actions - Struts2 Actions are HTTP independent and
can be tested without resorting to mock objects.
o Intelligent Defaults - Most framework configuration elements have
a default value that we can set and forget.
o Easy-to-customize controller - Struts 1 lets us customize the
request processor per module, Struts2 lets us customize the request
handling per action, if desired.
o Easy-to-tweak tags - Struts2 tag markup can be altered by changing
an underlying stylesheet. Individual tag markup can be changed by
editing a FreeMarker template. No need to grok the taglib API! JSP,
FreeMarker, and Velocity tags are fully supported.
o Integrating Debugging - Built-in debugging tools supporting
profiling, problem reports, and interactive object model queries.

For more, visit the Apache Struts 2 website [http://struts.apache.org/2.x/].
   
最后更新时间:2006-11-09
气死我了,跟STRUTS1.X一点都不兼容! 我一看就晕了!
   
0 请登录后投票
最后更新时间:2006-11-09
这就叫开源啊!人家可没义务兼容这个兼容那个。
要不改名得了,不要叫struts了。误导民众。
   
0 请登录后投票
最后更新时间:2006-11-09
比较恶心的一点是:

虽然webwork所有的package都改了名字,但是xwork照旧,所以你不得不在使用webwork的时候使用org.apache这个package,但是使用xwork的时候使用com.opensymphony这个package。很容易引起开发人员的迷惑。

要么webwork,xwork都改,要么都不改,现在只改了webwork,但是xwork却不改,非常奇怪。
   
0 请登录后投票
最后更新时间:2006-11-09
robbin 写道
比较恶心的一点是:

虽然webwork所有的package都改了名字,但是xwork照旧,所以你不得不在使用webwork的时候使用org.apache这个package,但是使用xwork的时候使用com.opensymphony这个package。很容易引起开发人员的迷惑。

要么webwork,xwork都改,要么都不改,现在只改了webwork,但是xwork却不改,非常奇怪。

可能到下一个版本就按robbin说的来改了。
所以当前的这个版本,还是最好不要用的。谁能经得起折腾啊。
   
0 请登录后投票
最后更新时间:2006-11-09
人家把xwork当成第三方库来用了,所以就不改。哈哈
   
0 请登录后投票
最后更新时间:2006-11-09
together 写道
robbin 写道
比较恶心的一点是:

虽然webwork所有的package都改了名字,但是xwork照旧,所以你不得不在使用webwork的时候使用org.apache这个package,但是使用xwork的时候使用com.opensymphony这个package。很容易引起开发人员的迷惑。

要么webwork,xwork都改,要么都不改,现在只改了webwork,但是xwork却不改,非常奇怪。

可能到下一个版本就按robbin说的来改了。
所以当前的这个版本,还是最好不要用的。谁能经得起折腾啊。


可以自已写些测试程序玩玩,但是不要真正的去用,隐定版出来后再说吧!
   
0 请登录后投票
最后更新时间:2006-11-09
现在学习webwork是不是到时候学习struts2.0就一点难度都没有了?
   
0 请登录后投票
最后更新时间:2006-11-09
还是继续先用着webwork
以后在看
   
0 请登录后投票
最后更新时间:2006-11-09
看来大家还是蛮关心struts的嘛
   
0 请登录后投票
论坛首页 Java版 Struts

跳转论坛:
JavaEye推荐