原创 如何刷新彈出窗口父窗口,關閉彈出窗口

關閉彈出窗口,刷新父窗口 <script>\r\nopener.location.reload();\r\nwindow.close();\r\n</script> 擴展:window.opener.location.href

原创 如何在客戶端控制webservice調用的timeout

1,在CXF生成的stub的客戶端,方式如下(CXF2.1.1):         SimpleServiceService srv = new SimpleServiceService();         SimpleService

原创 dom4j把String類型的XML數據轉換成Document

SAXReader saxReader = new SAXReader();  ument document = saxReader.read(new ByteArrayInputStream(xml.getBytes()));   又或

原创 spring之BeanFactoryAware接口

要直接在自己的代碼中讀取spring的bean,我們除了根據常用的set外,也可以通過spring的BeanFactoryAware接口實現,只要實現setBeanFactory方法就可以, private BeanFactory    

原创 js 彈出DIV

js如下: <script language="javascript"> //登陸彈出對話框,並使背景元素不可用 var div_width = 300; var div_height = 200; function showWindo

原创 Calendar 對時間的操作

Calendar cal=Calendar.getInstance();   //取得日曆         cal.setTime(new Date());         SimpleDateFormat sdf=new SimpleD

原创 JavaScript獲取select-option 的文本值

寫JS的時候 獲取select對象的value是很常見的事情 例如 <script language="javascript">  function selectInput(choose)  {     alert(choose.val

原创 Ext 重新加載grid

store.proxy.conn.url = url;         store.load({             params : {                 start : 0,                 limi

原创 java反射詳解

本篇文章依舊採用小例子來說明,因爲我始終覺的,案例驅動是最好的,要不然只看理論的話,看了也不懂,不過建議大家在看完文章之後,在回過頭去看看理論,會有更好的理解。 下面開始正文。 【案例1】通過一個對象獲得完整的包名和類名 ?

原创 bean.xml,c3p0,dbcp

<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans"  xmlns:xsi="http://ww

原创 myeclipse 8.5 安裝 svn 方法

方法總結 方法一:在線安裝 1.打開HELP-&gt;MyEclipse Configuration Center。切換到SoftWare標籤頁。 2.點擊Add Site 打開對話框,在對話框Name輸入Svn,URL中輸入:http

原创 未解決的問題

1、spring 泛型注入???? public interface BaseDao<T, PK extends Serializable>   //baseDao接口 public class BaseDaoImpl<T, PK ext

原创 Interceptor中設置request參數問題

爲了驗證身份,寫了一個interceptor,驗證失敗就dispatch到messagePage.jsp,messagePage.jsp是遺留系統的頁面不能改動: Java代碼 public class AuthIntercep

原创 No Hibernate Session bound to thread, and configuration does not allow creation of non-transactiona

異常棧: Java代碼 org.hibernate.HibernateException: No Hibernate Session bound to thread, and configuration does not allow