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

» JWorld@TW » Web Framework » Struts  

按列印兼容模式列印這個話題 列印話題    把這個話題寄給朋友 寄給朋友    訂閱主題
reply to postflat modego to previous topicgo to next topic
本主題所含的標籤
無標籤
作者 在strut-config.xml設定<message-resources>無法正常啟動tomcat的問題
hahawawa





發文: 50
積分: 0
於 2005-01-07 15:53 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
我在strut-config.xml設定如下(增加<message-resources>就發生問題)

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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<?xml version="1.0" encoding="ISO-8859-1" ?>
 
<!DOCTYPE struts-config PUBLIC
          "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN"
           "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
 
<struts-config>
 <data-sources/>
 
<!-- ======================================== Form Bean Definitions -->
 
    <form-beans>
  
   <form-bean
     name="InputNewForm"
     type="allform.InputNewForm"/>
  <form-bean
     name="ShowListForm"
     type="allform.ShowListForm"/>
     </form-beans>
 
<!-- =================================== Global Forward Definitions -->
 
    <global-forwards>
        <forward
            name="inputnew"
            path="/inputnew.do"/>
       <forward
            name="showlist"
            path="/showlist.do"/>
       <forward
            name="choosefunction"
            path="/choosefunction.do"/>
 
    </global-forwards>
 
<!-- =================================== Action Mapping Definitions -->
 
    <action-mappings>
          <action 
            path="/inputnew"
            type="org.apache.struts.actions.ForwardAction"
            parameter="/inputnew.jsp"/>
 
         <action 
            path="/showlist"
            type="org.apache.struts.actions.ForwardAction"
            parameter="/showlist.jsp"/>
 
         <action 
            path="/choosefunction"
            type="org.apache.struts.actions.ForwardAction"
            parameter="/choosefunction.jsp"/>
 
       <action
          path="/addNewSubmit"
          type="allaction.InputNewAction"
          name="InputNewForm"
          scope="request"
          validate="true"
          input="/inputnew.jsp">
          <forward
                name="success"
                path="/result/insertsuccess.html"/>
          <forward
                name="fail"
                path="/result/insertfail.html"/>
         </action>
 
         <action
          path="/viewListSubmit"
          type="allaction.ShowListAction"
          name="ShowListForm"
          scope="request"
          validate="true"
          input="/showlist.jsp">
          <forward
                name="show"
                path="/result/showall.jsp"/>
          </action>
    </action-mappings>
 
<message-resources parameter="resources.application" null="false"/>
 
</struts-config>


1
2
3
2005/1/7 下午 03:46:26 org.apache.commons.digester.Digester error
嚴重的: Parse Error at line 115 column 68: Element type "message-resources" must be declared.
org.xml.sax.SAXParseException: Element type "message-resources" must be declared.


請問是不是缺少了什麼才會這樣呢?
靜候回覆...


reply to postreply to post
話題樹型展開
人氣 標題 作者 字數 發文時間
4517 在strut-config.xml設定<message-resources>無法正常啟動tomcat的問題 hahawawa 2738 2005-01-07 15:53
3214 Re:在strut-config.xml設定<message-resources>無法正常啟動tomcat的問題 franne 37 2005-03-11 15:42
3145 Re:在strut-config.xml設定<message-resources>無法正常啟動tomcat的問題 hahawawa 15 2005-03-14 12:35
3162 Re:在strut-config.xml設定<message-resources>無法正常啟動tomcat的問題 VinceChen 38 2005-03-14 17:29
3475 Re:在strut-config.xml設定<message-resources>無法正常啟動tomcat的問題 franne 213 2005-03-17 16:45
1168 Re:在strut-config.xml設定<message-resources>無法正常啟動tomcat的問題 jhgyz 24 2009-01-08 11:49
1290 Re:在strut-config.xml設定<message-resources>無法正常啟動tomcat的問題 jhgyz 18846 2009-01-08 13:34
» JWorld@TW »  Web Framework » Struts

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

JWorld@TW 本站商標資訊

Powered by Powerful JuteForum® Version Jute 1.5.8