原创 struts2標籤和部分表達式的使用

A:<s:if>判斷字符串的問題:  1、判斷單個字符:<s:if test="#session.user.username=='c'">  這樣是從session中取出username的值,並且判斷其是否爲c,但是這樣判斷是不

原创 struts2 跳轉類型 result type=chain、dispatcher、redirect(redirect-action)

dispatcher 爲默認跳轉類型,用於返回一個視圖資源(如:jsp) Xml代碼 : <result name="success">/main.jsp</result>  <result name="success">/main.

原创 Android 出現Please ensure that adb is correctly located at問題的解決方法

問題描述:運行android程序控制臺輸出:       [2013-07-23 17:28:06 - ] The connection to adb is down, and a severe error has occured.

原创 關於struts的There is no Action mapped for namespace [/] and action name....異常

最近調試struts程序時遇到如下異常: Stacktraces There is no Action mapped for namespace [/web] and action name [userAction!listAllUse

原创 eclipse導出jar包

第一:普通類導出jar包,我說的普通類就是指此類包含main方法,並且沒有用到別的jar包。1.在eclipse中選擇你要導出的類或者package,右擊,選擇Export子選項;2.在彈出的對話框中,選擇java文件---選擇JAR f

原创 關於在Spring配置文件中解決MySQL重連問題

com.alibaba.druid.pool.DruidDataSource或org.apache.commons.dbcp.BasicDataSource連接池: 自動重連配置 : 1、testWhileIdle配置: <proper

原创 struts2標籤<s:if>和部分表達式的使用

A:<s:if>判斷字符串的問題:  1、判斷單個字符:<s:if test="#session.user.username=='c'">  這樣是從session中取出username的值,並且判斷其是否爲c,但是這樣判斷是不