中国IT动力,最新最全的IT技术教程
最新100篇 | 推荐100篇 | 专题100篇 | 排行榜 | 搜索 | 在线API文档 | 网通镜像
首 页 | 程序开发 | 操作系统 | 软件应用 | 图形图象 | 网络应用 | 精文荟萃 | 教育认证 | 硬件维护 | 未整理篇 | 站长教程
ASP JS PHP工程 ASP.NET 网站建设 UML J2EESUN .NET VC VB VFP 网络维护 数据库 DB2 SQL2000 Oracle Mysql
服务器 Win2000 Office C DreamWeaver FireWorks Flash PhotoShop 上网宝典 CorelDraw 协议大全 网络安全 微软认证
硬件维护  CPU  主板  硬盘  内存  显卡  显示器  键盘鼠标  声卡音箱  打印机  机箱电源  BIOS  网卡  C#  Java  Delphi  vs.net2005
  当前位置:> 程序开发 > 编程语言 > Java > Java与XML
What Is OpenSymphony? @ JDJ
作者:未知 时间:2005-08-10 18:57 出处:Java频道 责编:chinaitpower
              摘要:What Is OpenSymphony? @ JDJ

OpenSymphony is a collection of Java open source projects that provides a foundation for building J2EE applications. Each application tends to build from another OpenSymphony component in a loosely coupled manner, providing a best-of-breed option.

The OpenSymphony initiative has been running strong for about three years now and has been in a state of production readiness from almost the beginning. Many developers use the OpenSymphony projects as an alternative to the Apache-Jakarta project due to its "if you build it they will come" attitude. OpenSymphony developers take a much different approach to their projects: add code that is fully unit tested and ready for production, as opposed to code that might fulfill a bullet-list requirement immediately.

One of the more popular OpenSymphony projects is SiteMesh. Imagine, for example, that you need to maintain a collection of pages for a particular Web site where each page shares the same look and feel in navigation. SiteMesh enables the developer to quickly apply a decorator to a specific page that would cascade the changes through the entire page set. This works by using the servlet filter API to analyze the HTTP request by mapping specific page requests to decorators that are defined in a configuration file. One of the more common uses of this would be for a header and footer.

OSCache is an API used to perform fine-grained dynamic caching of JSP content. Of course, you can use OSCache for much more, such as caching search results or another type of dynamic data on your model layer. The most powerful feature of the package is in the JSP taglib section. With the JSP taglib code, the developer has the ability to cache everything, from the whole page to a specific section! OSCache allows you to immediately hit the ground running with the easy-to-use API in any Java application.

WebWork does much of the same as Apache-Struts but provides a much cleaner and simpler approach. One of the key advantages of the framework is the decoupling of the controller from the traditional view technologies such as JSP, Velocity, and XML/XSLT. WebWork can easily be plugged into a standard Java application, SOAP, or testing suite, such as JUnit. The modularization of the project makes WebWork an easy choice when deciding on a controller for building a J2EE application.

OpenSymphony is not without its faults, though. The documentation and examples for the WebWork and OSWorkFlow projects are more than lacking. However, the community and teams have recognized their weaknesses and are actively working on providing better documentation and examples for upcoming releases.

Don't let the lack of documentation hold you back, though. All the projects are extremely valuable and integrate with each other flawlessly at a production-quality level that other open source projects should follow. The up-front investment time to learn OpenSymphony will pay for itself many times over and will leave you wondering why you didn't start using the projects sooner.

Reference

  • OpenSymphony Project: www.opensymphony.com
  • 关闭本页
     
    首页 | 投资与合作 | 服务条款 | 隐私政策 | 收藏本站 | 设为首页 | 新用户注册 | 免责声明 | 使用帮助
    Copyright ©2005-2008 chinaitpower.com All rights reserved. www.chinaitpower.com 版权所有