原创 jsp的配置
1。 jdk1.4.2 的配置 JAVA_HOME C:/j2sdk1.4.2_18 CLASSPATH .;%JAVA_HOME%/lib;
原创 一個月後的日期轉換
Date dt= new Date(); Calendar cd = Calendar.getInstance(
原创 Hibernate 入門 使用Hibernate查詢語言對數據庫操作
/* * 具體操作Hibernate的類: * 增加、刪除、修改、按ID查詢、模糊查詢、查詢全部操作 * */public class PersonO
原创 Struts+Hibernate+Spring視頻下載
http://www.namipan.com/d/5c172b04fc1813b420e63c141805d74a3232ac44b27c4902 http://www.namipan.com/d/4b16eabb668f8b28ec3c
原创 Spring bean 作用域
在spring2.0之前bean只有2種作用域即:singleton(單例)、non-singleton(也稱prototype),Spring2.0
原创 hibernate lazy策略
lazy策略可以用在: * <class>標籤上:可以取值true/false * <property>標籤上,可以取值true/false,這個特性需要類增強 * <set>/<list>等集合上,可以取值爲true/false/ext
原创 myeclipse中使用debug時遇到的一個小問題
Source not found for StandardContext.start() line: 4151是因爲在程序中設
原创 Struts標籤-BEAN標籤
Struts 標籤 —— Bean 標籤 JSP 開發之中的要求,程序中儘可能少的出現的Scriptlet 代碼。主要是因爲可維護性相對較好。 提供了大量的自定義
原创 中文亂碼解決方法
.將得到的字符content進行以下變換byte temp[];temp=content.getBytes("iso-8859-1");content=new String(temp); 2.<%request.setCharact
原创 jdk1.5的配置
classpath C:/Program Files/Java/jdk1.5.0_04/lib/tools.jar;C:/Program Files/Java/jdk1.5.0_04/lib/rt.jar Pa
原创 J2EE 部分常見錯誤
1、org.apache.commons.dbcp.basicdatasource not found 缺少包:commons-dbcp.jar,commons-pool.jar 在spring-framework-2.0.1
原创 驗證框架的小錯誤
系統沒有找到validator的配置資源也就是配置文件,兩種情況: 第一: 在struts-config.xml中, 沒有正確寫入validation
原创 Struts —— Logic 標籤
<% request.setAttribute("uname","sMLDN") ; // 通過標籤判斷在指定範圍中是否有屬性存在 %> <logic:equal name="uname" scope="request" value
原创 Struts- HTML標籤
<html:form action="demo.do" method="post"> 性別: <html:radio property="sex" value="男"/>男 <html:radio proper
原创 編碼轉換
打開jdk的bin文件夾運行native2ascii.exe 然後輸入要轉換的中文回車將得到所要的編碼