- 博客(7)
- 资源 (1)
- 收藏
- 关注
转载 java异常归类
算术异常类:ArithmeticExecption 空指针异常类:NullPointerException 类型强制转换异常:ClassCastException 数组负下标异常:NegativeArrayException 数组下标越界异常:ArrayIndexOutOfBoundsException 违背安全原则异常:SecturityException 文件已结束异常:EOFExceptio
2010-01-22 09:42:00 263
原创 tapestry study ----04
To create a link to show a page, use a PageLink component. To create a link to show a page that takes parameters,either use a DirectLink to pass the parameters to the listener which will activate the
2010-01-12 16:39:00 362
转载 tapestry study---03
You can present any object in a TextField, as long as you provide a translator. The TextField will use it to translate the value to a string for display and on form submission, it will use to transl
2010-01-12 16:20:00 333
转载 tapystry study---02
Using FormsTo get inputs from the user, use a Form component and put some TextField components in it. When the form is rendered, each TextField will get the data from page object and display it in
2010-01-12 15:49:00 342
转载 tapestry study--01
To user a Tapestry application,you can enter a URL to ask Tapestry to display a certain page. If you dont specify anything particular in the URL, it will display the Home page.When displaying a c
2010-01-12 15:35:00 287
原创 java设计模式-----策略模式
定义:定义了算法族,分别封装起来,让它们之间可以互相替换,此模式让算法的变化独立于使用算法的客户。 适用性许多相关的类仅仅是行为有异。“策略”提供了一种用多个行为中的一个行为来配置一个类的算法。需要使用一个算法的不同变体。例如,你可能会定义一些反映不容的空间/时间权衡的算法。当这些变体实现了一个算法的类层次时[H087],可以使用策略模式。算法使用客户不应该知道的数据。可以
2009-12-28 10:37:00 470
原创 Java学习笔记--数据库插入时如何得到插入列的自增长列值
public int addFoodOrder(FoodOrder order) { String sql="insert into foodorderinfo values(?,?,?,?,?,?,?,?,?,?,?)"; int id=0; try { getConnection(); //设置prepareStatement状态 允许返回插入主键值
2009-09-07 16:11:00 908
简单的一个聊天室,jsp无刷新
2008-12-18
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人