当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: Learning and Using Jakarta Dige
 

 

    摘要: ******************************************************* 作者:陈刚,普通程序员,曾有幸以eclipse插件方式开发过一个中型软件。现将所学 付诸于纸,暂取书名<eclipse插件开发指南>,将于2005年初由清华大学出版社出版。 blog:http://www.cnblogs.com/glchengang/ **********......
 ·在java中使用oracle blob    »显示摘要«
    摘要: oracle中的lob (large object)可以存储非常大的数据(可能是4gb),这样就可以通过将文件或其它任何对象序列化成字节输出流(outputstream)后写入数据库,之后使用字节输入流(inputstream)将数据读出然后反序列化为原始文件或对象。操作时需要使用oracle的jdbc包,它扩展了sun的jdbc包中的blob对象。同时需要注意一些细节。下面的代码演示如何使用b......


Learning and Using Jakarta Digester

learning and using jakarta digester

10/23/2002 【程序编程相关:MVC循序渐进(环境篇) eclipse

by philipp k. janert, ph.d. 【推荐阅读:Eclipse下集成OpenOffice

described how to accomplish this using the standard sax and dom apis. 【扩展信息:MVC循序渐进(jsp model1实现

turning an xml document into a corresponding hierarchy of java bean objects is a fairly common task. in a previous article, i

 

although powerful and flexible, both apis are, in effect, too low-level for the specific task at hand. furthermore, the

unmarshalling procedure itself requires a fair amount of coding: a parse-stack must be maintained when using sax, and the

dom-tree must be navigated when using dom.

this is where the apache jakarta commons digester framework comes in.

the jakarta digester framework

the jakarta digester framework grew out of the jakarta struts web toolkit. originally developed to process the central

struts-config.xml configuration file, it was soon recognized that the framework was more generally useful, and moved to the

jakarta commons project, the stated goal of which is to provide a "repository of reusable java components." the most recent

version, digester 1.3, was released on august 13, 2002.

the digester class lets the application programmer specify a set of actions to be performed whenever the parser encounters

certain simple patterns in the xml document. the digester framework comes with 10 prepackaged "rules," which cover most of

the required tasks when unmarshalling xml (such as creating a bean or setting a bean property), but each user is free to

define and implement his or her own rules, as necessary.

the example document and beans

in this example, we will unmarshall the same xml document that we used in the previous article:

<?xml version="1.0"?>

<catalog library="somewhere">

   <book>

      <author>author 1</author>

      <title>title 1</title>

   </book>

   <book>

      <author>author 2</author>

      <title>his one book</title>

   </book>

   <magazine>

      <name>mag title 1</name>

      <article page="5">

         <headline>some headline</headline>

      </article>

      <article page="9">

         <headline>another headline</headline>

      </article>

   </magazine>

   <book>

      <author>author 2</author>

      <title>his other book</title>

   </book>

   <magazine>

      <name>mag title 2</name>


...   下一页
    摘要: 会议适合对象gui设计师、大学教授、手机厂商、集成商、软件厂商、门户网站、芯片厂商、汽车厂商、互动游戏和媒体。会议背景 gui即人机交互图形化用户界面设计。纵观国际相关产业在图形化用户界面设计方面的发展现状,许多国际知名公司早己意识到gui在产品方面产生的强大增值功能,以及带动的巨大市场价值,因此在公司内部设立了相关部门专门从事gui的研究与设计,同业间也成立了若干机构,以互相交流gui设计理论......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE