Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Architecture & Framework  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 请问,struts-legacy是干什么用的???????
uu_snow



发贴: 0
积分: 0
于 2003-07-01 09:29 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
RT


作者 Re:请问,struts-legacy是干什么用的??????? [Re:uu_snow]
why

問題兒童

总版主


发贴: 4629
积分: 388
于 2003-07-01 10:00 user profilesend a private message to usersend email to whysearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
From its api doc:
This distribution contains classes which have been removed from the core Struts distribution but may still be of interest.

The classes are considered "stable" but are not actively maintained. (Hence, the name "legacy".)

Class Summary
GenericConnection - Generic wrapper implementation of a Connection that works with GenericDataSource to wrap connections for any JDBC driver.
GenericDataSource - Generic data source implementation of the DataSource interface.

Notes
from: http://jakarta.apache.org/struts/userGuide/release-notes-1.1.html
In RC2, the Commons-DBCP and Commons-Pool dependencies have been removed. These are replaced with a dependency on the Struts-Legacy package, containing the GenericDataSource and GenericConnection classes from Struts 1.0.2. These are distributed for J2SE 1.3 but may be recompiled for J2SE 1.4. Other DataSource implementations may be plugged in (recommended).


why edited on 2003-07-01 10:03

作者 Re:请问,struts-legacy是干什么用的??????? [Re:uu_snow]
uu_snow



发贴: 0
积分: 0
于 2003-07-01 10:24 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
这段话我也看了,还是不明白struts-legacy是个啥东西


作者 Re:请问,struts-legacy是干什么用的??????? [Re:uu_snow]
why

問題兒童

总版主


发贴: 4629
积分: 388
于 2003-07-01 11:14 user profilesend a private message to usersend email to whysearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
Have you heard of or read the use of the word legacy in the computer/computing industry?
I don't know what legacy is translated to. The word means 遗产, in particular something from the ancestors and to be treasured. However, in our industry, legacy is used negatively, on something to be get rid of, almost trashed, but has to be kept for a period of time because of "historical" resaons.

In Struts 1.1 case, the GenericConnection and GenericDataSource classes are packaged to provide compatability to applications that was developed for pre-final release of Struts 1.1 and used Commons-DBCP and Commons-Pool.
If someone continues to use Commons-DBCP and Commons-Pool in Struts 1.1 Final (or later release), this struts-legacy.jar has to be in the library.


why edited on 2003-07-01 11:19

作者 Re:请问,struts-legacy是干什么用的??????? [Re:uu_snow]
uu_snow



发贴: 0
积分: 0
于 2003-07-01 12:04 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
能说中文吗?


作者 Re:请问,struts-legacy是干什么用的??????? [Re:uu_snow]
why

問題兒童

总版主


发贴: 4629
积分: 388
于 2003-07-01 12:32 user profilesend a private message to usersend email to whysearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
大侠明白legacy这个字的意思吗?
legacy在英文本来指遗产,即是祖先传下来、有纪念价值的。
但是咱们电脑人用legacy一般都是比较负面的,通常指为了兼容旧产品而保留的“鸡肋”━━小的的中文水平不好,希望没有误导大家啦!Embaressed

Strut 1.1 Final (RC2) 弃用Commons-DBCP and Commons-Pool,如果用beta版和RC1版开发的webapp用了它们,升级到1.1 Final版时又要继续使用的话,就要用到这个struts-legacy.jar来解决这个历史遗留下来的问题啦!

希望大侠能理解,然后用优秀而且准确的汉语说清楚啦!



作者 Re:请问,struts-legacy是干什么用的??????? [Re:uu_snow]
uu_snow



发贴: 0
积分: 0
于 2003-07-01 12:59 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
那就是说,GenericConnection and GenericDataSource在1.1里属于不被
推荐使用的东西了
那么我要要用到数据库操作、连接池的时候,在1.1里应该用什么来实现呢?



作者 Re:请问,struts-legacy是干什么用的??????? [Re:uu_snow]
floater

Java Jedi

总版主


发贴: 3233
积分: 421
于 2003-07-01 23:01 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
鸡肋! Good translation.

Legacy, some old stuff, laying around, no more new development. So don't build anything on top of that.



"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
- Martin Fowler, Refactoring - Improving the Design of Existing Code

flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923