action: null
java.lang.ClassNotFoundException: org.springframework.web.struts.ContextLoaderPlugIn
解決方法:加載 spring.jar 包
報 無法初始化
at org.apache.struts.action.ActionServlet.initModulePlugIns(
解決方法:
刪除 asm-2.2.3.jar
springdao 報空指針異常
java.lang.NullPointerException
springdao.EcAccountDAO.save(EcAccountDAO.java:48)
解決方法:沒有加載 spring配置文件就訪問了dao類
ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml");
EcAccountLevelDAO dao = (EcAccountLevelDAO)ctx.getBean("EcAccountLevelDAO");
Servlet action is not available
先檢查web.xml,struts-config.xml等文件有沒寫錯,然后檢查那些struts的包有沒有加全.. 或者 spring + struts 插件載入時出錯
ENCTYPE="multipart/form-data"
提交得方式就把那個文件作為流來傳輸了,普通字符串就傳不過去了!
去掉之后默認都是傳遞字符串,所以只把那個文本框里面得字符串提交過去!
修改表后數據庫表打開不能 報錯
有可能是因為 DAO 文件沒有加載 @Transcational 標記,導致事務(會話?)一直在運行,沒有關閉。
多表連查,有外鍵對象存在的情況下,外鍵對象也需要鏈接查詢,才能引入的并入結果集
EcOpus (opus, accout, catepoies)
from Opus opus, Accout accout, Catepoise catepoise
where ......
IllegalStateException
若已從響應(request,response)中獲得 ServletOutputStream 對象或 PrintWriter 對象,則不能使用 forward方法,否則會拋出該異常。
posted on 2008-09-06 23:13
黃小二 閱讀(218)
評論(0) 編輯 收藏 所屬分類:
J2EE