自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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

原创 chrome frame detection in javascript

window.externalHost

2012-07-18 16:59:32 107

原创 root of <%@include file=""%> and <c:import url=""/>

总是忘记root相对哪个路径  &lt;jsp:include page="/index.jsp"/&gt;&lt;%@include file="index.jsp%&gt;root: ${project_root}/WebContent/ &lt;c:import url="/index.jsp"/&gt;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

页面上jQuery需要把一个复杂类型的javascript数组对象作为参数传到Struts2 action,但是他们的默认格式不匹配导致action无法正确获得参数。 Struts2 action class SomeAction{ List<SomeBean> list; //getter setter //execute() } class SomeBean{ int id; //getter setter } 参数为以下格式(OGNL格式)时,Struts2 action能正确映射 list[0].id=1 但是当jQuery发送ajax call的时候 $.post(url, {list: [{id: 1}]}) 参数会被序列化为 list[0][id]=1 要转换成功,要么把jQuery的序列化格式改掉来迎合Struts2,要么给Struts2 action写个converter来迎合jQuery,前者更简单。于是 Jquery-1.4.4.js line6134代码 //buildParams( prefix + "[" + k + "]", v, traditional, add ); buildParams( prefix + "." + k, v, traditional, add ); 改jQuery源码并不是个好做法,最好是做个patch把$.param()覆盖掉.

2011-06-30

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除