摘要:
困扰了一上午,终于解决了~ 阅读全文
摘要:
<script type="text/javascript" src="${pageContext.request.contextPath}/style/common/js/jquery4.2.js"></script><script type="text/javascript" src="${pageContext.request.contextPath}/style/common/js/jquery-ui-1.7.custom.min.js"></script>& 阅读全文
摘要:
让spring代替struts2生成Actionstruts2中提供了一个与spring进行集成的包,位于struts2 的lib下,叫做struts2-spring-plugin.jar。复制到当前目录的WEB-INF/lib下,然后配置struts.xml和applicationContext.xml(1)在struts.xml的<action>配置中使用class属性指向Spring的<bean>元素: <action name="login" class="loginAction" > <result n 阅读全文
摘要:
UPDATE dbo.DEVICE_BIT_NUMBERSET code = substring(code,1,1) + substring(code,6,5) +substring(code,2,4) + substring(code,11,4) WHERE CODE LIKE '%ZNZM%';UPDATE dbo.DEVICE_BIT_NUMBERSET code = replace(code ,'-','_') WHERE CODE LIKE '%ZNZM%';SELECT substring(code,1,1) FROM 阅读全文
摘要:
INSERT INTO DEVICE_BIT_NUMBER ( DEVICE_ID, CODE )VALUES ( SELECT device_id,DEVICE_CODE FROM device_info WHERE device_code LIKE '%ZNZM%' )提示出错,正确写法去掉“values”,如下:INSERT INTO DEVICE_BIT_NUMBER ( DEVICE_ID, CODE )SELECT device_id, device_code FROM device_info a WHERE a.device_c... 阅读全文
摘要:
首先buildPath,增加相应的包接着,将src设置为源码包,就不会出现java文件图标是空心等异常问题好了,解决! 阅读全文
摘要:
ajax的时间戳当你的ajax需要的数据是及时更新的,也就是说在没有刷新页面的情况下,得到其他操作的新数据,你的ajax提交url中加入一个时间戳,这样,就可以避免页面使用缓存了,原理是:时间戳本事就是一个随时更新的变量,时间戳只是一个叫法,你可以这么理解:你的url中加了一个随时更新的变量,,那么,提交时是不会使用缓存的。var url = "insertData.jsp?textName="+nameAdd+"&date="+new Date().getTime();也可以用时间的数值形式:var url = "insertData 阅读全文
摘要:
jsp页面:$(document).ready(function() { setInterval(function myTimer() { //alert('a'); getViews(); },1000); }); //播放 function getViews(){ $.ajax({ 'url':"${pageContext.request.contextPath}/video/getVideos.action?r="+Math.random()+"&op... 阅读全文
摘要:
package com.supcon.hospital.jianche.service;import java.util.Hashtable;/*** @date 2012-10-11*/public class VideoHashTable {private static VideoHashTable receHashTable;private Hashtable<Long, Long> rht = new Hashtable<Long, Long>();private boolean updateFlag = true;private VideoHashTable( 阅读全文
摘要:
创建Dom4j的Document用于解析xmlprotected Element createDocument(String xml) {try {Document document = new SAXReader().read(Thread.currentThread().getContextClassLoader().getResourceAsStream(xml));// Document document = DocumentHelper.parseText(xml);Element root = document.getRootElement();return root;} catc 阅读全文