点点滴滴

导航

 

2010年11月15日

摘要: public void doGet(HttpServletRequest request, HttpServletResponse response)throws ServletException, IOException {response.setContentType("application/x-download; charset=utf-8");//1String imageDir = t... 阅读全文
posted @ 2010-11-15 14:08 attar 阅读(7377) 评论(0) 推荐(0)
 

2010年11月14日

摘要: /** 002* 分割字符串 003* 004* @param str String 原始字符串 005* @param splitsign String 分隔符 006* @return String[] 分割后的字符串数组 007*/008@SuppressWarnings("unchecked") 009public static String[] split(String str, Str... 阅读全文
posted @ 2010-11-14 09:46 attar 阅读(5535) 评论(0) 推荐(0)
 

2010年11月13日

摘要: 首先我们来看看如何使用format属性进行格式化输出。我们在request中放入当前时间。request.setAttribute("time", new Date());在JSP页面中,倘若我们不使用format属性进行格式化,而直接使用<bean:write name="time" scope="request"/>进行输出,其输出结果将是:Sun Dec 14 15:38:51 ... 阅读全文
posted @ 2010-11-13 10:57 attar 阅读(6185) 评论(1) 推荐(0)
 

2010年9月2日

摘要: 问题:javax.faces.FacesException: The scope of the referenced object: '#{}' is shorter than the referring object解决:Error MessageAdding a map service that contains raster layers to a WebADF project in Ecl... 阅读全文
posted @ 2010-09-02 16:39 attar 阅读(947) 评论(0) 推荐(0)