
Java
SystemBug
这个作者很懒,什么都没留下…
展开
-
使用js分析url
function prints(str) {var matchPIC = new RegExp("((?:http|https|ftp|mms|rtsp)://(&(?=amp;)|[A-Za-z0-9/./=/?%_~@#:;/+/-])+(gif|jpg|png))", "ig");var matchURL = new RegExp("((?:http|https|ftp|mms|rtsp):原创 2006-01-10 10:05:00 · 750 阅读 · 0 评论 -
C++中的Exception
自己项目中前期开发的数据层代码,过渡使用Exception导致处理逻辑残缺,执行流程混乱。由此想想说说Exception。C++提供了Exception机制可以在程序执行中抛出异常,但是在目前C++的基础上增加的Exception的特点就像C++的指针一样具有太大的灵活性,对于一般程序员使用Exception往往会造成结构混乱。Java是Pure OO内建的Exception相对于C++方式的原创 2006-01-22 12:10:00 · 1100 阅读 · 0 评论 -
Java Tip 98: Reflect on the Visitor design pattern
Java Tip 98: Reflect on the Visitor design pattern Implement visitors in Java, using reflection Summary-->SummaryThe Visitor pattern is often used to separate the structure of an object collect转载 2006-06-12 13:00:00 · 652 阅读 · 0 评论 -
遇到的Java中ClassLoader 和 getMethod问题
关于ClassLoader,获取ClassLoader使用 Thread.currentThread().getContextClassLoader();进行获取。在Container中运行可以确保得到当前运行的上下文中正确的JVM ClassLoader。ClassLoader的运行状态与当前上下文相关,因此在获取时通过 Thead 才可以获得准确的定义。 通过getClass()原创 2006-06-28 09:37:00 · 1277 阅读 · 0 评论 -
eclipse struts2插件
eclipse struts2插件官方地址:http://mvcwebproject.sourceforge.net一:安装 安装教程地址:http://mvcwebproject.sourceforge.net/install.html二:使用 http://mvcwebproject.sourceforge.net/tutorial.html原创 2009-12-31 12:24:00 · 528 阅读 · 0 评论