摘要: 很简单……多写一个Servlet,在init函数中启动对应的线程。把这个Servlet加到web.xml中,例如 <servlet> <servlet-name>EchoServiceStartUpServlet</servlet-name> <servlet-class>EchoService.EchoServiceSt... 阅读全文
posted @ 2010-05-10 19:57 拂晓风起-Kenko 阅读(12060) 评论(6) 推荐(0) 编辑
摘要: C++使用http形式,下载文件。url中如果出现中文,需要把编码改为UTF8。因为C++本来使用GBK编码,但默认的http请求是按UTF8编码的。不事先转码,tomcat等服务器就解释不了那个url。  方法很简单,直接使用CChineseCode提供的函数……搞掂……http://files.cnblogs.com/kenkofox/C... 阅读全文
posted @ 2010-05-10 17:02 拂晓风起-Kenko 阅读(10157) 评论(0) 推荐(1) 编辑
摘要: URL编码是一个比较麻烦的事情,RFC 3986是关于URI的一个标准,在它的第2节定义了字符如何在URI中进行表示,而第3节把一个URI区分为scheme, hier-part, query, fragment几个component。根据这个RFC,A URI is composed from a limited set of characters consisting of digits, l... 阅读全文
posted @ 2010-05-10 13:04 拂晓风起-Kenko 阅读(5424) 评论(0) 推荐(0) 编辑
摘要: 首先需要知道什么是“Firefox插件”。这里说的“插件”只是一个通俗的说法,其实Firefox这种扩展功能的“插件”包括:扩展extension和插件plugin。 {tip:title=Handy Hint}Firefox官方网站的解释是:Extensions are small add-ons that add new functionality to your Mozilla program. Plugins are programs that allow websites to provide content to you and have it appear in your bro 阅读全文
posted @ 2010-05-10 10:24 拂晓风起-Kenko 阅读(26053) 评论(0) 推荐(2) 编辑