`
文章列表
搜索关键词高亮,搜索高亮,关键字高亮,highlight   jquery.highlight-4.js  下载   基于Jquery,所以使用之前要导入Jquery支持Js   下面为使用方法: Usage Add highlight Download jquery.highlight-4.js (2 KB ) and add it to your page after jQuery. A Closure Compiler compressed version (1 KB ) is also available. Style the highligh ...
Java filter不起作用,java过滤器不起作用,java过滤器不过滤 情况:过滤器配置正确,但却没有起到过滤作用,原因可能是排放位置的问题。如下: 错误:     <filter>     <filter-name>struts2</filter-name>     <filter-class>com.yiwo.base.web.filter.PrepareFilter</filter-class>   </filter> <filter>     <filter-name> ...
ajax请求 XML解析错误:语法错误 Ajax请求中,当返回的数据和接收处理的字符相同时,却没有按照正常处理,而在FireFox中提示XML解析错误:语法错误…… ,那就是编码的错误了。 原因是因为输出流的编码问题,所以要设置输出流的编码。例如设置为UTF-8,实际编码参照自己项目的编码。 eg:Struts2下设置编码         HttpServletResponse response = ServletActionContext.getResponse();         response.setContentType("text/text"); ...
Uploadify没有Session的问题解决方法:(PHP) $('#file_upload).uploadify({     // Your normal options here     formData : { '<?php echo session_name();?>' : '<?php echo session_id();?>' } });     Uploadify官网解决Session问题详解地址: http://www.uploadify.com/documentation/uploadify/using-session ...
枚举配置是用Property,而不是Many-To-One   <property name="status" not-null="true" type="com.lqy.qqyuelao.enumerate.Status ">            <column name="status" not-null="true">                 <comment>状态</comment>           ...
最新版svn下载地址,svn1.8,svn1.6安装地址   Links for 1.8.x Release: Changelog: http://subclipse.tigris.org/subclipse_1.8.x/changes.html Eclipse update site URL: http://subclipse.tigris.org/update_1.8.x Zipped downloads: http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID=2240 ...
原因: 当上传图片时出现 HTTP ERROR 302 错误, 这是服务端需要登录验证,而客户端uploadify 并没有把 cookie 中的 sessionId  发送给服务器 ,如果有拦截或过滤的话,请求就会被重置,这样就会出现302错误了。解决方法: 当然是要请求后面加上 sessionId  $("#newPhoto").uploadify({        height        : 20,         swf           : '${pageContext.request.contextPath}/lib ...
在eclipse启动tomcat时遇到超时45秒的问题: Server Tomcat v7.0 Server at localhost was unable to start within 45 seconds. If the server requires more time, try increasing the timeout in the server editor. 网上解决办法。 1.在 eclipse菜单-》window->preferencs里找到server 中最下面一项:server timeout delay 设置成 Unlimited 即可! ...
类似于PHP中的Smarty,Velocity是一个基于java的模板引擎 (template engine)。它允许任何人仅仅简单的使用模板语言(template language)来引用由java代码定义的对象。从而实现界面和Java代码的分离,使得界面设计人员可以和java程序开发人员同步开发一个遵循 MVC架构的web站点。 另外,Velocity的能力远不止web站点开发这个领域,例如,它可以从模板 (template)产生SQL和PostScript、XML,它也可以被当作一个独立工具来产生源代码和报告,或者作为其他系统的集成组件使用。 Velocity也可以为Turbi ...
jquery获取焦点后光标在字符串后,当input获得焦点后,自动把光标移到文本内容的最后,jQuery用focus()使文本输入框获得焦点且焦点在文字的最右的方法 //获取焦点后光标在字符串后 //其原理就是获得焦点后重新把自己复制粘帖一下   var t=$("#"+id).val();   $("#"+id).val("").focus().val(t);>>>>>>>>>>>>>>>>>>>>> ...
      Servlet3.0新特性: 异步处理支持:有了该特性,Servlet线程不再需要一直阻塞,直到业务处理完毕才能再输出响应,最后才结束该Servlet线程。在接收到请求 之后,Servlet线程可以将耗时的操作委派给另一个线程来完 ...
java.lang.NoSuchMethodException: org.apache.catalina.deploy.WebXml addServlet -------------------------------------------------------------------------------------------------------------------   解决此异常的方法是: 删除您添加在Referenced Libraries 下的catalina.jar包, 然后删除Webapp下的部署程序,重新部署后一切正常。   -- ...
  org.apache.jasper.JasperException: java.lang.ClassCastException: org.apache.catalina.core.DefaultInstanceManager cannot be cast to org.apache.tomcat.InstanceManager -------------------------------------------------------------------------------------------------------------------------------   ...
  java.lang.IllegalArgumentException: Invalid <url-pattern> toDo in servlet mapping   在学习Servlet3.0的AsyncContext时出现的错误。     java.lang.IllegalArgumentException: Invalid <url-pattern> toDo in servlet mapping at org.apache.catalina.core.StandardContext.addServletMapping(StandardC ...
js时间格式化,时间格式化,js格式化时间,格式化时间,js时间转换,js转换时间 ---------------------------------------------------------------------------   字符串转日期:http://fanshuyao.iteye.com/blog/2357436 js格式化代码 //js时间格式化 Date.prototype.format = function(format) { var o = { "M+" : this.getMonth()+1, //month ...
Global site tag (gtag.js) - Google Analytics