Time of Update: 2018-12-05
文章目錄 Apache Tomcat/5.5.27 具體報錯資訊如下:HTTP Status 500 - type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception
Time of Update: 2018-12-05
LCDS只能與J2EE的服務端進行通訊,目前只是ActionScript 3.0資料類型和資料類型的轉換.ActionScript 3.0與資料類型轉換是不對稱的. ActionScript3.0向轉換時資料類型的對應關係: ActionScript資料類型 -------------------java資料類型 null -------------------null Number -------------------java.lang.Number Boolean --
Time of Update: 2018-12-05
Acegi安全架構在AJAX下的逾時控制
Time of Update: 2018-12-05
TOMCAT啟動時調用的Servlet和Action的配置方法 一般在你的應用檔案夾下會建立一個web-inf檔案夾,裡面放一些不想讓使用者的道的資料,比如又一個classes檔案夾,來放servlet或者bean等等。
Time of Update: 2018-12-05
Web應用中ThreadLocal的使用 1、ThreadLocal是什麼: ThreadLocal是什麼呢?其實ThreadLocal並非是一個線程的本地實現版本,它並不是一個Thread,而是thread local
Time of Update: 2018-12-05
[ibatis]條件SQL寫法樣本 <resultMap class="java.util.HashMap" id="statistic_result"> <result property="TOTAL" javaType="java.lang.Integer"/> <result property="SUCCESS" javaType="java.lang.Integer"/> <result
Time of Update: 2018-12-05
JDK1.4中Map map = new HashMap(); Iterator it = map.entrySet().iterator(); while (it.hasNext()) { Map.Entry entry = (Map.Entry) it.next(); Object key = entry.getKey(); Object value =
Time of Update: 2018-12-05
Ibatis TypeHandler使用總結ibatis中有一個TypeHandler(準確的說應該是TypeHandlerCallback), 這個介面一般用的比較少, google一下, 大部分就是用來將資料庫中的值與java的枚舉值或者clob與字串之間的轉換. 最近本人也用到了這個東東. 不過我們使用的是將儲存在資料庫中以一定分隔字元串連的字串轉換成List類型. 開始不知道有TypeHandler這個東東, 於是在JavaBean中定義了兩個屬性, 一個string類型的,
Time of Update: 2018-12-05
問題你想要將一個大型的struts-config.xml檔案分為多個小檔案,以便改善組織和更易維護,特別是在團隊開發的過程中。動作要領將一個struts-config.xml分解為多個設定檔。每一個都必須是良構的,並且能過通過struts-config XML DTD的校正。將這些檔案作為ActionServlet在web.xml中的初始化參數config的參數值引用,如Example 2-9。Example 2-9. 多設定檔
Time of Update: 2018-12-05
字串數組與字串之間的互轉(join/split)1、Java 1-1、字串數組=>字串:StringUtils: join(Object[] array, String separator) 例:/* *Join Strings using separator >>>AB$#$CD$#$EF */import org.apache.commons.lang.StringUtils;public class StringUtilsTrial
Time of Update: 2018-12-05
一.html表單,用get和post提交資訊到servlet 1.<meta content="text/html; charset=ISO-8859-1>這個html標籤裡面的屬性的是告訴瀏覽器的編碼。個人覺得可以這樣理解,你編寫一個html檔案,然後你在body裡面輸入了中文。這裡的charset的值就是表明html製作使用的語言。那麼當瀏覽器要顯示這個html頁面的時候,就知道這個頁面是用什麼字元顯示了!就不會出現亂碼了!還有一個作用就是頁面編碼!
Time of Update: 2018-12-05
System.getProperty()系統參數大全 Properties props=System.getProperties(); //系統屬性 System.out.println("Java的運行環境版本:"+props.getProperty("java.version")); System.out.println("Java的運行環境供應商:"+props.getProperty("java.vendor"));
Time of Update: 2018-12-05
用xmlhttp和Java
Time of Update: 2018-12-05
java對cookie的操作比較簡單,主要介紹下建立cookie和讀取cookie,以及如何設定cookie的生命週期和cookie的路徑問題。 建立一個無生命週期的cookie,即隨著瀏覽器的關閉即消失的cookie,代碼如下 1HttpServletRequest request 2HttpServletResponse response 3Cookie cookie =
Time of Update: 2018-12-05
JAVA反射機制實現方法:反射設定屬性:A a = new A();Field field = a.getClass().getDeclaredField("x"); field.setAccessible(true); field.set(a, 1); 反射讀取屬性:Field f = a.getClass().getDeclaredField("x");f.setAccessible(true);System.out.println(f.get(a)); 引用是個很有意思的東西。
Time of Update: 2018-12-05
sina筆試題 不定項選擇:1. 不能用來修飾interface的有() A.private B.public C.protected D.static 2.System.out.println(-1>>>1) 輸出什麼. A.-1 B.1 C. 2147483647 D. -2147483647 3.
Time of Update: 2018-12-05
通過resultMap與resultClass取得Map結果集的差異別名映射->實體類:resultClass<select id=" selectAll" resultClass="AppLog">selectID as id,TYPE as type,DESCR as descrfrom APP_LOGwhere ID = #id#</select>List list = sqlMapper.queryForList("selectAll");for
Time of Update: 2018-12-05
public static void main(String[] args) { String jsonString = "[{\"id\": \"1\",\"fields\": [{\"name\": \"age\", \"value\": 10},{\"name\": \"id\", \"value\": \"1\"},{\"name\": \"name\", \"value\": \"name-1\"}]},{\"id\": \"2\",\"fields\": [{\"name\":
Time of Update: 2018-12-05
驗證碼應用的地方很多,多處用於防止使用者惡意不間斷錄入。下面就介紹一種java驗證碼的方式:拿登入功能來舉例(例子中使用了struts2+spring2.6.5)首先login.jsp寫一個IMG標籤和JS方法。<img id="captchaImage" src="<%=request.getContextPath()%>/login/createJcaptcha.action" width="100" height="30" align="top"
Time of Update: 2018-12-05
修改Java檔案不用重啟Tomcat服務的方法