Preferences > Java > Editor > Templates > New... ${import:import(org.slf4j.Logger,org.slf4j.LoggerFactory)} private static Logger logger = LoggerFactory.getLogger(${enclosing_type}.class); looger<Alt + />
2013-02-28 17:18 · 评论(0)
总是忘记root相对哪个路径 <jsp:include page="/index.jsp"/> <%@include file="index.jsp%> root: ${project_root}/WebContent/ <c:import url="/index.jsp"/> root: ${domain_root} 其实<c:import>是面向url的,当然就是以domain root为起始
2011-10-31 15:04 · 评论(0)
element.className = element.className; http://stackoverflow.com/questions/1702399/how-can-i-force-reflow-after-dhtml-change-in-ie7
2011-06-22 13:48 · 评论(0)
J2EE (1.4) Specifications ------------------------------------------------------------------------------------------------------------- Java Servlet Specification 2.4 JavaServer Pages Specification 2.0 Enterprise JavaBeans™ Specification 2.1 Enterprise JavaBeans to CORBA Mapping 1.1 RMI over IIOP J…
2011-03-14 15:40 · 评论(0)
通常做firefox的* 文字溢出显示省略号 *会用xul的hack,但是有个条件如果没有满足就会失效,使内容变成空白。 这个条件是: 引用包含-moz-binding的css的页面必须与该css文件同域,并且也要和ellipsis的xml文件同域 也就是说下面这种情况会失效: http://[b]domain1[/b].company.com/some-page.htm [quote] This is a very very very very very very very very very very long sentence [/quote] http://[b]domain2[/b…
2011-01-31 17:33 · 评论(0)
页面上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, {li…
2010-11-21 05:31 · 评论(1)
make sure to have below lines in .settings/org.eclipse.wst.validation.prefs USER_BUILD_PREFERENCE=enabledBuildValidatorListorg.eclipse.jst.j2ee.internal.web.validation.UIWarValidator;org.eclipse.jst.j2ee.internal.classpathdep.ClasspathDependencyValidator; USER_MANUAL_PREFERENCE=enabledManualValidat…
2010-07-13 14:47 · 评论(0)
<iframe src=javascript: style=display:none></iframe> $('iframe').show() $('iframe').hide() <iframe src=javascript: width=0 height=0></iframe> $('iframe').width(width).height(height) $('iframe').width(0).height(0)
2010-02-04 16:07 · 评论(0)
i intended to pack my action classes in jar file and utilize the convention plugin to initialize them. i did it following this instruction. the plugin didn't recognize my jar file. >_< with the source code of convention plugin, i traced to org.apache.struts2.convention.PackageBasedActionConfigBuild…
2010-01-01 01:45 · 评论(0)
"...祖国的种族战争进行的如火如荼之时..." "如火如荼"--褒义词! 用褒义词去形容种族战争,给自己戴 反人类 的帽子。 "这是firbug的bug吗,!!!!!!!!!!!!!" 感叹号的滥用随处可见。感叹号是用来加强语气的,这个回复表达了异常强烈的情感,显得莫名其妙。即使是反问句也不需要用到13个感叹号啊。比如他楼下的回复就很正常:"不是bug吧,本来就是这样实现的"。 先不说一个程序员要有多高的技术水平,作为一个人首先要有良好的品质,也就是个人修养。好好地摆事实讲道理,心平气和地做技术交流,不需要针锋相对。语气强硬不等于更有道理,滥用感叹号更会给人"咄咄逼人"的感觉。 <"...…
2009-11-25 04:16 · 评论(0)
I'm not picky. As long as she's smart and pretty. And sweet. And gentle and tender and refined and lovely and carefree For a moment there I thought we were in trouble
2009-11-15 20:14 · 评论(0)
<tiles:insertDefinition name="def" ignore="true"/> Description: " If this attribute is set to true, and the attribute specified by the name does not exist, simply return without writing anything. The default value is false, which will cause a runtime exception to be thrown. " But in fact, when "def…
2009-10-03 05:48 · 评论(0)
<script src=js/jquery/1.3.2.js></script> <script src=js/jquery/timers.js></script> <a name=n1 url=http://g.cn /> <a name=n2 url=http://sohu.com /> <a name=n3 url=http://pcpop.com /> <a href=#n1>g.cn</a> <a href=#n2>sohu.com</a> <a href=#n3>pcpop.com</a> <hr/> <iframe name=iframe width=1280 height=1…
2009-08-24 02:53 · 评论(0)