选用了jobo.
heritrix ,代码不是很整洁。
j-spider ,也不合用。

WebRobot.createFromXML("dir");就可以使用jobo.xml 来配置了。
regfilter 只能配置 allow="false";看源码没有问题,今后有时间要解决。



posted @ 2006-04-30 15:21 西津渡 阅读(436) | 评论 (0)编辑 收藏
 

遇到奇怪的问题,是oracle 10g1.0.1 的问题,下载ojdbc14_g.jar 好了。

posted @ 2006-02-17 22:47 西津渡 阅读(258) | 评论 (0)编辑 收藏
 

formitem ,getString("GBK");

<page:applyDecorator page="controller/servlet" decorator=""/>;

posted @ 2006-02-15 21:57 西津渡 阅读(226) | 评论 (0)编辑 收藏
 
我开始选择webwork.不过我现在喜欢springmvc,非侵入式设计是我喜欢的方式。
类型转换,controller 的设计。validator.form 标签。是mvc 选择的主要标准。
posted @ 2006-02-15 21:51 西津渡 阅读(199) | 评论 (0)编辑 收藏
 
如果hibernate 制约了oo 设计,就要考虑这种制约的代价。对于很重要的class ,如果不能用orm,就要放弃。
posted @ 2006-01-01 19:23 西津渡 阅读(292) | 评论 (0)编辑 收藏
 

异步架构
不要把所有的功能做成同步的。只要可以异步松耦合就应该采用。

显示逻辑非自动化
只运行一份(或者很少的几个拷贝)的项目,架构的时候,要尽量使得开发简单。
不要考虑全部自动化。

导航关系严重影响class 设计

posted @ 2006-01-01 19:04 西津渡 阅读(261) | 评论 (0)编辑 收藏
 

好像记得booch 说过,一个系统的use case 不应该超过20个。现在,我非常同意。太复杂的use case ,往往意味着对系统的抽象不够。

自己感觉db table 的规模,也适用同样的逻辑。

posted @ 2006-01-01 19:02 西津渡 阅读(271) | 评论 (0)编辑 收藏
 
环境:tomcat5.5.9+apache jstl1.1.2
任务:从xml 读出内容显示
方案:用jstl\xml taglib.
方法:
还需要xalan2.7.0 ,否则报 noclassdeffounded exception
,org/apache/xpath/variablesstack.
解决中文问题:c:import 加attribute charEncoding.   
代码:
<c:import charEncoding="gb2312" url="http://localhost:8080/???/???.xml"
var="homecenterxml"/>
<x:parse xml="${homecenterxml}" var="infodoc"/>
<x:forEach select="$infodoc//info">
  <p>
  <x:out select="@id"/>
  <x:out select="title"/>
  </p>
</x:forEach>
posted @ 2005-12-18 21:28 西津渡 阅读(297) | 评论 (0)编辑 收藏
 

tag 技术
最近的系统,大量借鉴了内容管理系统中对tag 的使用。

TAG Content Management: "Just in Time Content Delivery: Pushing Content to Users at the Right Place and at the Right Time"

可以看看,http://www.technorati.com/tags/, http://del.icio.us/tag.

非常流行的技术。

posted @ 2005-12-08 19:31 西津渡 阅读(361) | 评论 (0)编辑 收藏
 

在做系统的升级改版,发现第一版的系统,不够松,牵一发动全身。第二版的设计理念。

最小的系统核心

系统核心不依赖于其他部分。
核心之外的其他系统为核心服务。

SOA 架构

用XML 简化系统的配置

posted @ 2005-12-08 09:47 西津渡 阅读(477) | 评论 (0)编辑 收藏
仅列出标题
共11页: First 上一页 3 4 5 6 7 8 9 10 11 下一页