您好,欢迎光临本网站![请登录][注册会员]  
文件名称: Struts2DesignAndProgramming
  所属分类: Java
  开发工具:
  文件大小: 10mb
  下载次数: 0
  上传时间: 2009-09-16
  提 供 者: pinna******
 详细说明: "Struts 2 Design and Programming" is a tutorial for Struts 2 by Budi Kurniawan. When it comes to the web application parts of Struts, it's very good and surprisingly thorough, but when it comes to other things, it's a little less well-informed. The b ook starts off by walking through Model 1 and Model 2 web development, introducing a short example of both designs. After that, you get chapter after chapter covering Struts from top to bottom, from the tags to FreeMarker to Velocity, OGNL to interceptors, security, file uploads and downloads, progress meters, custom result types, security... when it comes to Struts' core features, the book is quite good. However, there are a few oddities. Chapter 24 covers Tiles plugins, and while Tiles is certainly popular enough, the lack of coverage of SiteMesh – which does many of the same things, except with less intrusion. It's not so much that Tiles shouldn't have been covered, but choosing one while ignoring the other stood out some. The worst offender, though, is the persistence chapter, chapter 11. It focuses primarily on the DAO pattern, which isn't the worst pattern one could choose... but in a book printed in 2008, ignoring JPA and Spring seems a little out of place. Spring doesn't even get mentioned; Hibernate gets this: Hibernate has gained popularity in the past few years as an add-on for Java EE and other applications. Its web site (www.hibernate.org) advertises this free product as "a powerful, ultra-high performance object/relational persistence and query service for Java." Using Hibernate, you do not need to implement your own persistence layer. Instead, you use a tool to create databases and related tables and determine how your objects should be persisted. Hibernate virtually supports all kinds of database servers in the market today, and its Hibernate Query Language provides "an elegant bridge between the object and relational worlds." More people will be using Hibernate in the near future. If you have time, invest in it. Of course, persistence is a huge topic to cover... but choosing to address only DAO while offering Hibernate one paragraph seems a little odd, especially considering the presence of JPA. In addition, some of the design choices of the DAO seem odd: one example is that JNDI lookups are considered an "expensive operation." Compared to what? The author caches the datasource, which eliminates the whole reason for using a Datasource in JNDI in the first place (live container management of the resource), and in tests, retrieving a datasource from JNDI isn't especially expensive... What's more, if the author had focused on Hibernate instead, it would have been a non-issue in the first place. Even with that, though, it's actually a very good and very useful book. Struts 2 is covered in enough detail that even new users can get up to speed in a fairly short time, with understanding of what's going on inside the framework. Examples are fairly clear, and illustrative of actual needs ...展开收缩
(系统自动生成,下载前可以参看下载内容)

下载文件列表

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.
 相关搜索: Struts2DesignAndProgramming
 输入关键字,在本站1000多万海量源码库中尽情搜索: