原创 14-參數位置上的this

google docs上的講解  輸出   源代碼:   public class xsgFile{   private int i;   static private xsgFileSystem fs=new xsgFileSyste

原创 修飾Field的annotation

簡單例子 http://docs.google.com/Edit?id=dc9s6wg8_661df2r6h99

原创 列出某個文件夾下的文件及目錄

listFiles()應用

原创 2個菜單的簡單程序

自己讀吧   https://docs.google.com/Edit?id=dc9s6wg8_624g5pksngs    

原创 一個函數用2個點連續調用

《Java編程思想》561頁有這樣一句話,看上去很怪:buffer.put(c2).put(c1)連續2個put.關於這一點,請大家參考下面的程序   public class TwoDot{  TwoDot MyOut(){     S

原创 Java連接SQL Server2005

 通過jdbc連接時出現錯誤: Connection refused: connect   泣血解決方案   http://docs.google.com/Doc?id=dc9s6wg8_143c47bsnfx  

原创 form action中類的查找

web.xml如下:  <servlet>        <servlet-name>ZhengBanQiao</servlet-name>        <servlet-class>coreservlets.ShadowedText<

原创 利用反射獲得域的取值

import java.lang.reflect.*; public class FieldGet {   private String a="新曙光@未央";   public static void main(String[] ar

原创 關於This

//www.xinshuguang.org//新曙光培訓@未央interface myActionListener{}//這個接口的作用是讓func2和func3有同樣類型的參數//而後這種參數又由不同的類去實現class myButto

原创 過濾器

這是孫鑫《Java Web開發詳解》596頁上程序的簡化版。可以幫助大家理解源程序。 請到 https://sites.google.com/site/xinshuguang/filter 下載源代碼。    

原创 枚舉中的構造函數

《Java編程思想》610頁售貨機程序很難懂,那個isTransient是什麼時候被設置成true的,請看參考程序 google文檔 另外,csdn上插入源代碼的表格控件怎麼沒有了?要想把大一些的程序講清楚,非得有行號。 我會把另外一篇關

原创 膝上電腦

Core Servlet and Jsp 181頁        

原创 org.apache.catalina.servlets.InvokerServlet is privileged and cannot be loaded by this web

孫鑫《Web開發詳解》245頁上問題的解決方法:   http://docs.google.com/Edit?id=dc9s6wg8_153ggp4bmg3    

原创 用反射獲取接口名

全文如下: http://docs.google.com/Edit?id=dc9s6wg8_623c4txh3fj

原创 jsp中路徑設置

詳見下文 http://docs.google.com/Doc?id=dc9s6wg8_148fj9mr22r