lerluc
lerluc · 共 14 篇文章
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)
window.externalHost
2012-07-18 16:59 · 评论(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) · IE
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) · Java · XML · SOAP · Web · Servlet
通常做firefox的[i][u]文字溢出显示省略号[/u][/i]会用xul的hack,但是有个条件如果没有满足就会失效,使内容变成空白。 这个条件是: [quote]引用包含-moz-binding的css的页面必须与该css文件同域,并且也要和ellipsis的xml文件同域[/quote] 也就是说下面这种情况会失效: [quote]http://[b]domain1[/b].company.com/some-page.htm [quote] This is a very very very very very very very very very very long senten…
2011-01-31 17:33 · 评论(0) · CSS · Blog · XML · Firefox
页面上jQuery需要把一个复杂类型的javascript数组对象作为参数传到Struts2 action,但是他们的默认格式不匹配导致action无法正确获得参数。 Struts2 action[code="java"] class SomeAction{ List list; //getter setter //execute() } class SomeBean{ int id; //getter setter } [/code] 参数为以下格式(OGNL格式)时,Struts2 action能正确映射 [code="http post"] list[0].id=1 [/code] 但…
2010-11-21 05:31 · 评论(1) · Ajax · jQuery · JavaScript
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) · Eclipse · Web
[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 · 评论(0) · HTML · Security
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-Actionsinjarfiles]this[/url][/b] instruction. the plugin didn't recognize my jar file. >_< with the so…
2010-01-01 01:45 · 评论(0) · Spring · REST · Eclipse · Struts · Ant
"...祖国的种族战争进行的如火如荼之时..." "如火如荼"--褒义词! 用褒义词去形容种族战争,给自己戴 反人类 的帽子。 "这是firbug的bug吗,!!!!!!!!!!!!!" 感叹号的滥用随处可见。感叹号是用来加强语气的,这个回复表达了异常强烈的情感,显得莫名其妙。即使是反问句也不需要用到13个感叹号啊。比如他楼下的回复就很正常:"不是bug吧,本来就是这样实现的"。 先不说一个程序员要有多高的技术水平,作为一个人首先要有良好的品质,也就是个人修养。好好地摆事实讲道理,心平气和地做技术交流,不需要针锋相对。语气强硬不等于更有道理,滥用感叹号更会给人"咄咄逼人"的感觉。 <"...…
2009-11-25 04:16 · 评论(0) · 情感 · PHP
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) · Apache · Struts · XML · JSP
[code="html"] g.cn sohu.com pcpop.com [/code] Doesn't work in IE...>_< Turns out there are plugins for this already...[url=http://www.mikage.to/jquery/jquery_history.html]jQuery history[/url] [url=http://www.asual.com/jquery/address/]jQuery Address[/url] [url=http://benalman.com/projects/jquery-bbq…
2009-08-24 02:53 · 评论(0) · HTML · jQuery · IE