- 博客(14)
- 资源 (1)
- 收藏
- 关注
原创 eclipse template 自动生成logger对象
Preferences > Java > Editor > Templates > New... ${import:import(org.slf4j.Logger,org.slf4j.LoggerFactory)}private static Logger logger = LoggerFactory.getLogger(${enclosing_type}....
2013-02-28 17:18:13 225
原创 root of <%@include file=""%> and <c:import url=""/>
总是忘记root相对哪个路径 <jsp:include page="/index.jsp"/><%@include file="index.jsp%>root: ${project_root}/WebContent/ <c:import url="/index.jsp"/>root: ${domain_root} ...
2011-10-31 15:04:23 157
原创 force element in IE to reflow
element.className = element.className; http://stackoverflow.com/questions/1702399/how-can-i-force-reflow-after-dhtml-change-in-ie7
2011-06-22 13:48:25 103
原创 J2EE, Java EE 5, Java EE 6: Specifications
J2EE (1.4) Specifications------------------------------------------------------------------------------------------------------------- Java Servlet Specification 2.4JavaServer Pages Specifica...
2011-03-14 15:40:40 114
firefox ellipsis hack has a condition
通常做firefox的[i][u]文字溢出显示省略号[/u][/i]会用xul的hack,但是有个条件如果没有满足就会失效,使内容变成空白。这个条件是:[quote]引用包含-moz-binding的css的页面必须与该css文件同域,并且也要和ellipsis的xml文件同域[/quote]也就是说下面这种情况会失效:[quote]http://[b]domain1[/b...
2011-01-31 17:33:48 87
原创 jQuery param serialization and Struts2 built in type conversion not compatible
页面上jQuery需要把一个复杂类型的javascript数组对象作为参数传到Struts2 action,但是他们的默认格式不匹配导致action无法正确获得参数。Struts2 action[code="java"]class SomeAction{ List list; //getter setter //execute()}class SomeBean...
2010-11-21 05:31:03 110
原创 eclipse wst dynamic web project not including jar in web app libraries issue
make sure to have below lines in .settings/org.eclipse.wst.validation.prefs[code]USER_BUILD_PREFERENCE=enabledBuildValidatorListorg.eclipse.jst.j2ee.internal.web.validation.UIWarValidator;org.eclips...
2010-07-13 14:47:14 98
原创 IE6 throws security warning when show/hide an iframe
[code="html"]$('iframe').show()$('iframe').hide()[/code][code="html"]$('iframe').width(width).height(height)$('iframe').width(0).height(0)[/code]
2010-02-04 16:07:18 158
原创 struts convention plugin to scan jar files for actions
i intended to pack my action classes in jar file and utilize the convention plugin to initialize them. i did it following [b][url=http://cwiki.apache.org/WW/convention-plugin.html#ConventionPlugin-Act...
2010-01-01 01:45:37 85
原创 文化水平与个人修养
[url=http://tech.sina.com.cn/d/2009-11-24/14023619811.shtml]"...祖国的种族战争进行的如火如荼之时..."[/url]"如火如荼"--褒义词!用褒义词去形容种族战争,给自己戴 反人类 的帽子。[url=http://www.iteye.com/topic/692079]"这是firbug的bug吗,!!!!!!!!!...
2009-11-25 04:16:06 158
原创 Robert LeRoy Parker and Harry Longbaugh (Butch Cassidy And The Sundance Kid)
I'm not picky. As long as she's smart and pretty. And sweet. And gentle and tender and refined and lovely and carefreeFor a moment there I thought we were in trouble
2009-11-15 20:14:08 134
tiles 2.1.3 bug: 'ignore' doesn't work for insertDefinition tag
[code="xml"][/code][size=large]Description[/size]: [b]"[/b]If this attribute is set to true, and the attribute specified by the name does not exist, simply return without writing anything. The defau...
2009-10-03 05:48:09 155
back button history handling for iframe with jquery (IE failed me again)
[code="html"]g.cnsohu.compcpop.comvar cm = {hash: ''}$(document).everyTime(100, function(){ var hash = location.hash if(hash && cm.hash != hash){ cm.hash = hash frame...
2009-08-24 02:53:35 98
jquery.param.patch.zip
2011-06-30
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人