JWorld@TW the best professional Java site in Taiwan
      註冊 | 登入 | 全文檢索 | 排行榜  

» JWorld@TW » Java 程式分享區 » Web  

按列印兼容模式列印這個話題 列印話題    把這個話題寄給朋友 寄給朋友    訂閱主題
reply to topicthreaded modego to previous topicgo to next topic
本主題所含的標籤
無標籤
作者 [JSP]爛爛留言版 - 用Struts作練習
caterpillar

良葛格

版主

發文: 2613
積分: 70
於 2004-08-03 00:06 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
最近在學Struts,閒來沒事拿之前那個爛爛留言版來作練習,沒什麼新功能,隨手寫寫練習Struts,僅作參考。。。。 Big SmileBig SmileBig Smile

http://www.caterpillar.onlyfun.net/files/guestbook-struts.zip


caterpillar edited on 2005-02-21 17:33
reply to postreply to post
良葛格學習筆記
作者 Re:[JSP]爛爛留言版 - 用Struts作練習 [Re:caterpillar]
black999





發文: 12
積分: 0
於 2004-12-23 23:56 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
我的執行環境是Tomcat 5.0.28 , winxp pro 執行您的爛爛留言板Struts作練習
出現以下錯誤訊息:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
HTTP Status 500 - 
 
--------------------------------------------------------------------------------
 
type Exception report
 
message 
 
description The server encountered an internal error () that prevented it from fulfilling this request.
 
exception 
 
javax.servlet.ServletException: Servlet.init() for servlet action threw exception
  org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
  org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
  org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
  org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
  org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
  org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
  java.lang.Thread.run(Thread.java:595)
 
root cause 
 
java.lang.NullPointerException
  org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:1003)
  org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:955)
  org.apache.struts.action.ActionServlet.init(ActionServlet.java:482)
  javax.servlet.GenericServlet.init(GenericServlet.java:211)
  org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
  org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
  org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
  org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
  org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
  org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
  java.lang.Thread.run(Thread.java:595)
 
note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.
 
--------------------------------------------------------------------------------
 
Apache Tomcat/5.0.28

真不曉得問題出在哪??
是不是少了一個Struts-config-login.xml檔


black999 edited on 2004-12-24 09:58
reply to postreply to post
作者 Re:[JSP]爛爛留言版 - 用Struts作練習 [Re:black999]
smjp





發文: 16
積分: 0
於 2005-01-14 21:02 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
將web.xml檔(紅色部份拿掉)
1
2
3
4
5
6
7
8
9
10
11
<servlet>
      .
      .
      <param-value>/WEB-INF/conf/struts-config.xml</param-value>
    </init-param>
    <init-param>
      <param-name>config/login</param-name>
      <param-value>/WEB-INF/conf/struts-config-login.xml</param-value>
    </init-param>
    <load-on-startup>2</load-on-startup>
  </servlet>


reply to postreply to post
作者 Re:[JSP]爛爛留言版 - 用Struts作練習 [Re:caterpillar]
joy6811





發文: 64
積分: 0
於 2005-12-08 14:10 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
請問大大如果我想把SQL換成 Ms SQL 2000 我該改哪些
Code
ps. 我已經把sql的那三個JAR檔放入WEB-INF/lib下面了

謝謝大大


reply to postreply to post
» JWorld@TW »  Java 程式分享區 » Web

reply to topicthreaded modego to previous topicgo to next topic
  已讀文章
  新的文章
  被刪除的文章
Jump to the top of page

JWorld@TW 本站商標資訊

Powered by Powerful JuteForum® Version Jute 1.5.8