摘要:
Digester本来仅仅是Jakarta Struts中的一个工具,用于处理struts-config.xml配置文件。 Digester 使用所需的jar包 Digester、BeanUtils、Collections、Commens-Logging 示例一: 【users.xml】 【User.xml】 package myPack1; public class User { pr... 阅读全文
posted @ 2010-07-27 16:01
leonard2010
阅读(1349)
评论(0)
推荐(1)
摘要:
文件:/calendar.jsp 无标题文档 文件:/css/calendar.css /* CSS Document */ body { font-size:12px; font-family:'Lucida Grande','Lucida Sans Unicode','宋体',arial,verdan... 阅读全文
posted @ 2010-07-27 15:57
leonard2010
阅读(379)
评论(0)
推荐(0)
摘要:
今天遇到这样一个问题 ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { Object[] obj=new Object[3]; for(int i=0... 阅读全文
posted @ 2010-07-27 15:51
leonard2010
阅读(1441)
评论(0)
推荐(1)
摘要:
/* * d-s rule: 不会出错,因为有默认值 * method : format() * 注意:假如有个日期date是由'2100-05-06'字符串转换来的,再把date根据一定格式转换成String,date中不存在的属性采用默认值,如hh默认值为12点 * 整个过程不会抛出异常。 * s-d rule: 源串必须满足构建Date格式的要求,否则无法构建日期,会抛出异常Unp... 阅读全文
posted @ 2010-07-27 15:37
leonard2010
阅读(881)
评论(0)
推荐(0)