Time of Update: 2018-12-05
本文出自:http://www.blogjava.net/DoubleJ/archive/2008/03/06/184376.html 這兩天系統把的JSP+Servlet複習了一遍.最後看到了自訂標籤這一塊,發現自己忘沒了,於是找資料看以前的項目,回顧了一下自訂標籤的用法,於是寫了下來,怕自己忘記!我們先分析一下分頁標籤的需求:如:{showMenu(this.id, 0, 1)}"> 用自訂標籤實現分頁如果我們要寫出分頁標籤,最少我們要有三個變數,curPage//當前頁
Time of Update: 2018-12-05
今天又學習了一點東西,覺得蠻開心的,記錄下來,見證一下自己的進步,也為以後遇到相關問題的朋友參考一下吧啟動myeclipse的tomcat6.0有如下提示:1.The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:/Program Files/Java/jdk1.
Time of Update: 2018-12-05
struts1 --servlet+mvchibernate --JDBCspring 擴充內容: struts2 JMail Weblogic EJB 工作流程jBPM jQuery ... struts1架構:1 架構: 針對某一類應用提供的通用解決方案。 作用: 提供給程式員一些基礎代碼(跟業務無關、實現較複雜的代碼) 開發效率會提高-在代碼架構搭建成功之後 先瞭解架構的核心思想2 struts1的核心思想 基於MVC模式,用於web層的開源架構。3 MVC模式: view :
Time of Update: 2018-12-05
標籤具有的資訊: 1 定義標籤庫的書寫規範的文檔--tld 2 標籤處理類自訂標籤: 1 編寫tld文檔,定義標籤書寫規範 2 編寫標籤處理類 ,整合SimpleTagSupport,覆蓋其中的doTag方法。 如果標籤有屬性,則在處理類中需要提供同名的私人屬性, 及其對應的set方法 3 將標籤定義文檔配置給web容器 web.xml <jsp-config> <taglib>
Time of Update: 2018-12-05
Action子類 DispatchAction ForwardAction 頁面 url?methodName=add <input type="hidden" name="methodName" value="add"> 設定檔 <action parameter="methodName"> DispatchAction add(mapping,form,req,resp){ }
Time of Update: 2018-12-05
el運算式語言的作用: 擷取資料並顯示 參數 ${param.參數名} ${paramValues.參數名[i]} 屬性 ${**Scope.屬性名稱} ${屬性名稱} request-->session-->application 擷取request對象 ${pageContext.request.contextPath}邏輯分支控制語句: JSTL:java standard tag libarary java標準標籤庫 html中嵌入java代碼,<
Time of Update: 2018-12-05
常用struts標籤:struts-html: *1 <html:form> <==> <form> 要求:編寫該標籤,必須建立對應的formBean,同時指定action屬性的請求路徑 該標籤中的action屬性,不能直接跳轉頁面資訊 該標籤中的action屬性,指定跳轉資源時,其絕對路徑是以項目名開始 2 <html:text> 要求:formBean中必須出現一個跟該控制項同名的屬性 3
Time of Update: 2018-12-05
struts中的資料來源使用 1 在struts-config.xml中配置資料來源 <data-source type="org.apache.commons.dbcp.BasicDataSource" key="指定當前資料來源名"> <set-property property="driverClassName" value="oracle.jdbc.driver.OracleDriver"/> <set-property
Time of Update: 2018-12-05
struts token1 用戶端重複重新整理頁面,可能導致資料的重複提交 原因: 跳轉使用forward方式跳轉,只顯示第一期請求的路徑資訊 /add--->result.jsp 解決: servlet :使用redirect方式跳轉 struts :<forward redirect="true" ...>2 用戶端不登陸,可以隨意其他資源 解決: filter過濾除了登入和註冊以外的所有資源 filter從session中擷取使用者名稱,如果找到,則繼續後續操作。
Time of Update: 2018-12-05
1.===> 進入bin目錄下,雙擊startup.bat看是否報錯。一般肯定會報。2.===> 右鍵我的電腦===>進階===>環境變數 建立一個 變數名為 JAVA_HOME 然後變數值是 你的JDK的bin目錄的上一層。 再建立一個 變數名為CATALINA_HOME 變數值是你的Tomcat的bin的目錄的上一層。3.===> 進入Tomcat bin目錄下 雙擊shutdown.bat 然後重複1 的操作。看是否報錯。應該不報了。4.===>
Time of Update: 2018-12-05
*Class.forName(...)*Connection conn = DriverManager.getConnection(,,)conn.setAutoCommit(false);*PreparedStatement pstm = conn.prepareStatement("sql"); *insert *delete *upadte select*pstm.set***(..)*ResultSet rs = pstm.executeQuery();*while(re.next())
Time of Update: 2018-12-05
1 將整個繼承關係放在一張表中,為了區分具體的子類資訊,表中需要建立一個額外的列 create table paymeny( ..... type varchar2(12) ); <class name="Payment" table="payment"> ..... <discriminitor column="type" type="string"> <sub-class name="CardPayment" discriminitor-value="
Time of Update: 2018-12-05
面試職位 JAVA軟體工程師 筆試不說了 一些基礎的東西。 面試問到 1設計介面時注意的問題 注意傳回值和拋異常 2 快速排序演算法 3 STUTS設定檔結構 4 銀行系統使用的資料類型 5 簡曆中的一個項目的項目流程 6 設計模式,說幾個設計模式的設計思想,你在項目中的哪個地方用到。
Time of Update: 2018-12-05
hibernate編寫:1 匯入jar包: hibernate3.jar commons-logging.jar commons-collection.jar dom4j.jar log4j.jar ehcache.jar antlr.jar cglib.jar2 建立sql指令碼,以及表對應的實體類3
Time of Update: 2018-12-05
主鍵共用: <class name="Boss"> <id> <generator name="sequence/increment"> ... <one-to-one name="company" cascade="save-update/all"> </class> <class name="Company"> <id> <generator name="foreign">
Time of Update: 2018-12-05
--暫存資料表文法--會話型的,會話結束資料清空create global temporary table test_tmp(id number,name varchar2(10).....) on commit preserve rows--事務型的,事務結束資料清空create global temporary table test_tmp(id number,name varchar2(10)......) on commit delete rows--過程create or
Time of Update: 2018-12-05
struts的基本編寫流程: 1 web.xml中指定 *.do ===== org.apache.struts.action.ActionServlet 2 要求用戶端發送請求必須遵循*.do的方式 3 web處理類 extends Action{ execute(ActionMapping,ActionForm,HttpServletRequest,HttpServletResponse) { //擷取用戶端頁面中的參數 //req.getParameter("uname");
Time of Update: 2018-12-05
id建置原則: oracle: sequence increment hilo seqhilo uuid.hex native assigned foreign mysql: identity increment hilo uuid.hex native assigned foreignhql: 【select 類別名】from 類名 類別名; from 類名 類別名 inner join|left outer join
Time of Update: 2018-12-05
昨天我需要將一個 GB 編碼的 WEB 應用改變成 UTF-8 編碼,整個 WEB 程式涉及 300 多個 ASP 和 HTML 檔案….於是乎,我上網搜尋能將 GB 檔案批量轉換成 UTF-8 編碼的軟體。找來找去,多是一些僅能在網頁中即時編碼的 VBS、JS 或 PHP 指令碼,而沒有進行大量檔案編碼轉換的工具。因為時間緊迫,後來只好使用最原始的辦法,用 Windows 的記事本開啟一個個 ASP 檔案,使用“另存新檔…”的方式變成 UTF-8
Time of Update: 2018-12-05
一: <set name="集合屬性名稱" cascade="all" inverse="true" lazy="false" fetch="join"> <key column="外鍵所在的列名"> <one-to-many class=""> </set>多: <many-to-one name="" column="外鍵所在的列名"> List<ClassRoom> ls =