![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Web
speedpower
这个作者很懒,什么都没留下…
展开
-
在JSP中得到绝对地址
basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath() + "/";在HTML的Head标签中中加入一个Base标签:那么页面上的所有链接在被点击或请求时,都会加上这个basePath前缀...原创 2010-09-10 11:26:47 · 98 阅读 · 0 评论 -
Web-Harvest: variables!!
Getting sized of alist variable: ListVariable.toList().size()Getting content of a string variable: NodeVariable.toString() beanshell中的变量也是context中的变量,所以setContextVar()不能设置...原创 2011-06-09 11:11:54 · 90 阅读 · 0 评论 -
WH : && => &&
<ifcondition="${ (commentsCount.toString().trim().length() > 0)&amp;&amp; (commentsCount.toInt() > 1) }"> <call-inlinename="fetchComments"></call-inline&g原创 2011-06-09 11:12:15 · 91 阅读 · 0 评论 -
JProfiler : 用JProfiler可以很容易发现Blocked掉的线程。
As title.原创 2011-06-09 11:20:55 · 414 阅读 · 0 评论 -
调试内嵌的javascript
调试诸如:[code="java"]document.write('');[/code]生成的 javascript ?使用 Google Chrome 的 developer tools 吧。在 FireFox 3.6.11 上的 Firebug 不能调试啊。 IE ?原创 2011-06-09 11:22:21 · 126 阅读 · 0 评论 -
ExceptionUtils : A very useful class from apache commons
apache.commons.langExceptionUtils.getFullStackTrace(e)catch (Exception e) { //print("====threadChanged.toString():" + threadChanged.toString()); //print("====forumDateFrmt:" + foru...原创 2011-06-09 11:23:30 · 83 阅读 · 0 评论 -
Beanshell : Setting variables in WebHarvest scripts
print("sys.isVariableDefined(\"headerList2\"):" + sys.isVariableDefined("headerList2"));sys (即SystemUtilities) 的getVar( )的取值顺序是:先从FunctionContext中取,再从Scraper的Context中取。<var/>的取值是:会从传入的Co...原创 2011-06-09 11:34:08 · 99 阅读 · 0 评论 -
Web-Harvest: Set a Proxy Server
[code="java"]InputSource is = new InputSource(new StringReader(script));info("setting up scraper ... ");ScraperConfiguration scraperConfig = new ScraperConfiguration(is);Scraper scraper = new ...原创 2011-06-09 11:36:39 · 132 阅读 · 0 评论 -
CSS文集《The CSS Anthology》 第二章 文本格式化及其它基础知识 (1)
[size=x-large]第二章 文本格式化及其它基础知识(Text Styling and Other Basics)[/size]《The CSS Anthology(CSS文集)》包含100多个实用的小例子,非常适合入门者学习CSS相关的知识。[b]1. 用CSS替换标签[/b]曾几何时,在CSS被广泛接纳之前,很多Web开发者都是使用标签在网页上为文本加样式。但是这种...原创 2012-02-15 13:25:59 · 97 阅读 · 0 评论 -
CSS文集《The CSS Anthology》 第二章 文本格式化及其它基础知识 (2)
[b]11. 为段落文本加高亮[/b][code="html"] Chinese-style Stuffed Peppers Below, I've created a CSS rule for all te level-one headings in a document. The result is shown in Figure 2.11. hello, w...2012-02-18 19:46:25 · 339 阅读 · 0 评论 -
CSS文集(The CSS Anthology) 第三章 CSS和图片
[b]1. 为图片加边框[/b]以下CSS中,第一种是以详细方式进行设置,第二种以缩略形式进行设置。[code="html"] [/code][code="css"]img.pg60 { border-width : 1px; border-style : solid; border-color : #000000;}.pg60_i...2012-02-18 21:07:06 · 102 阅读 · 0 评论 -
Spring WebContextApplication
问题:ClosingWebContextApplicaton Spring启动后自动退出。 原因:Hehe,因为还有Tomcat跑在相同的端口。原创 2011-06-09 11:11:14 · 65 阅读 · 0 评论 -
Cygwin
在Windows下使用Linux中的常用工具!!原创 2011-06-09 11:10:19 · 66 阅读 · 0 评论 -
HTMLUnit : javascript 对页面的更改如何获得
HTMLUnit acts like a real browser, so everything that the javascript done in the HTML page's DOM model will not affect the source of page. But we can get the updated DOM model from using this metho...2011-06-09 11:02:43 · 103 阅读 · 0 评论 -
Beanshell : becareful of the { }
It will cause some unexpected problems to variables.原创 2011-06-09 11:04:04 · 80 阅读 · 0 评论 -
SQL : 数据表结构对比工具
AdeptSQL Diff不错,还提供了输出SQL语句(复制就行了)。原创 2011-06-09 11:04:46 · 656 阅读 · 0 评论 -
Eclipse : Order and Export
如果本项目所引用的jar包也要被其它项目用到,那么需要在本项目的Build Path中,Order and Export选项页把这些jar勾选。原创 2011-06-09 11:05:54 · 407 阅读 · 0 评论 -
properties文件中相同的参数只能取得一个值
如题。嘿嘿。原创 2011-06-09 11:06:43 · 630 阅读 · 0 评论 -
twitter : 搜索中文关键字时每个中文字要用空格分开
如题。原创 2011-06-09 11:07:25 · 389 阅读 · 0 评论 -
Linux : 生成随机密码
生成6位随机密码$ echo `< /dev/urandom tr -dc_A-Z-a-z-0-9 | head -c6` 生成8位随机密码$ echo `< /dev/urandom tr -dc_A-Z-a-z-0-9 | head -c8`原创 2011-06-09 11:08:34 · 174 阅读 · 0 评论 -
Spring : 隐藏的依赖
可以在Bean定义上加attribute:"depends-on=BEAN_NAME1[,BEAN_NAME2][,BEAN_NAME3]...".原创 2011-06-09 11:09:04 · 64 阅读 · 0 评论 -
GOOD practice : 字符串比较
对于字符串的比较和打印一定要额外加引号输出!!原创 2011-06-09 11:09:22 · 81 阅读 · 0 评论 -
eclipse : XXX cannot be resolved to a type
Go to:[Project] \[Clean...]原创 2011-06-09 11:09:51 · 111 阅读 · 0 评论 -
CSS float属性
下面[url]http://www.w3school.com.cn[/url]对float属性的介绍:[quote]float 属性定义元素在哪个方向浮动。以往这个属性总应用于图像,使文本围绕在图像周围,不过在 CSS 中,任何元素都可以浮动。浮动元素会生成一个块级框,而不论它本身是何种元素。如果浮动非替换元素,则要指定一个明确的宽度;否则,它们会尽可能地窄。注意:假如在一行之上只...原创 2012-03-03 15:06:36 · 141 阅读 · 0 评论