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

» JWorld@TW » AJAX討論區 » ZK  

按列印兼容模式列印這個話題 列印話題    把這個話題寄給朋友 寄給朋友    訂閱主題
reply to postflat modego to previous topicgo to next topic
己加入精華區
by kebin_liu at 2006-09-29 08:37
本主題所含的標籤
無標籤
作者 Re:簡介 ZK - Ajax but no Javascript [Re:CMHuang]
javalien





發文: 60
積分: 0
於 2006-10-23 09: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
to CMHuang :
大大您好,以下是我的Web.xml的設定…
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app version="2.4">
  <display-name>Welcome to BOOKS Project</display-name>
  <description>Welcome to BOOKS STORE. </description>
  
<!-- ZK start -->
 
  <listener>
    <description>Used to cleanup when a session is destroyed</description>
    <display-name>ZK Session Cleaner</display-name>
    <listener-class>org.zkoss.zk.ui.http.HttpSessionListener</listener-class>
  </listener>
 
  <servlet>
    <description>ZK loader for ZUML pages</description>
    <servlet-name>zkLoader</servlet-name>
    <servlet-class>org.zkoss.zk.ui.http.DHtmlLayoutServlet</servlet-class>
    <init-param>
      <param-name>update-uri</param-name>
      <param-value>/zkau</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>zkLoader</servlet-name>
    <url-pattern>*.zul</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>zkLoader</servlet-name>
    <url-pattern>*.zhtml</url-pattern>
  </servlet-mapping>
  
  <servlet>
    <description>The asynchronous update engine for ZK</description>
    <servlet-name>auEngine</servlet-name>
    <servlet-class>org.zkoss.zk.au.http.DHtmlUpdateServlet</servlet-class>
  </servlet>
  <servlet-mapping>
    <servlet-name>auEngine</servlet-name>
    <url-pattern>/zkau/*</url-pattern>
  </servlet-mapping>
<!-- ZK end -->

  <servlet>
    <servlet-name>action</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>

    <init-param>
      <param-name>config</param-name>
      <param-value>/WEB-INF/struts-config.xml,/WEB-INF/struts-config-sysadmin.xml,/WEB-INF/struts-config-train.xml</param-value>
    </init-param>

    <init-param>
      <param-name>debug</param-name>
      <param-value>2</param-value>
    </init-param>
    <init-param>
      <param-name>detail</param-name>
      <param-value>2</param-value>
    </init-param>
    <load-on-startup>2</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>action</servlet-name>
    <url-pattern>*.do</url-pattern>
  </servlet-mapping>
  
<!-- ZK start -->
  <!-- Miscellaneous -->
  <session-config>
    <session-timeout>120</session-timeout>
  </session-config>

  <!-- MIME mapping -->
  <mime-mapping>
    <extension>doc</extension>
    <mime-type>application/vnd.ms-word</mime-type>
  </mime-mapping>
  <mime-mapping>
    <extension>gif</extension>
    <mime-type>image/gif</mime-type>
  </mime-mapping>
  <mime-mapping>
    <extension>htm</extension>
    <mime-type>text/html</mime-type>
  </mime-mapping>
  <mime-mapping>
    <extension>html</extension>
    <mime-type>text/html</mime-type>
  </mime-mapping>
  <mime-mapping>
    <extension>jnlp</extension>
    <mime-type>application/x-java-jnlp-file</mime-type>
  </mime-mapping>
  <mime-mapping>
    <extension>jpeg</extension>
    <mime-type>image/jpeg</mime-type>
  </mime-mapping>
  <mime-mapping>
    <extension>jpg</extension>
    <mime-type>image/jpeg</mime-type>
  </mime-mapping>
  <mime-mapping>
    <extension>js</extension>
    <mime-type>application/x-javascript</mime-type>
  </mime-mapping>
  <mime-mapping>
    <extension>pdf</extension>
    <mime-type>application/pdf</mime-type>
  </mime-mapping>
  <mime-mapping>
    <extension>png</extension>
    <mime-type>image/png</mime-type>
  </mime-mapping>
  <mime-mapping>
    <extension>txt</extension>
    <mime-type>text/plain</mime-type>
  </mime-mapping>
  <mime-mapping>
    <extension>xls</extension>
    <mime-type>application/vnd.ms-excel</mime-type>
  </mime-mapping>
  <mime-mapping>
    <extension>xml</extension>
    <mime-type>text/xml</mime-type>
  </mime-mapping>
  <mime-mapping>
    <extension>xul</extension>
    <mime-type>application/vnd.mozilla.xul-xml</mime-type>
  </mime-mapping>
  <mime-mapping>
    <extension>zhtml</extension>
    <mime-type>text/html</mime-type>
  </mime-mapping>
  <mime-mapping>
    <extension>zip</extension>
    <mime-type>application/x-zip</mime-type>
  </mime-mapping>
  <mime-mapping>
    <extension>zul</extension>
    <mime-type>text/html</mime-type>
  </mime-mapping>
<!-- ZK end -->

  <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>index.zul</welcome-file>
    <welcome-file>index.zhtml</welcome-file>
  <welcome-file>index.html</welcome-file>
  <welcome-file>index.htm</welcome-file>
  </welcome-file-list>

  <taglib>
    <taglib-uri>/WEB-INF/struts-bean</taglib-uri>
    <taglib-location>/WEB-INF/tld/struts-bean.tld</taglib-location>
  </taglib>

  <taglib>
    <taglib-uri>/WEB-INF/struts-html</taglib-uri>
    <taglib-location>/WEB-INF/tld/struts-html.tld</taglib-location>
  </taglib>

  <taglib>
    <taglib-uri>/WEB-INF/struts-logic</taglib-uri>
    <taglib-location>/WEB-INF/tld/struts-logic.tld</taglib-location>
  </taglib>

  <taglib>
    <taglib-uri>/WEB-INF/struts-nested</taglib-uri>
    <taglib-location>/WEB-INF/tld/struts-nested.tld</taglib-location>
  </taglib>

  <taglib>
    <taglib-uri>/WEB-INF/struts-tiles</taglib-uri>
    <taglib-location>/WEB-INF/tld/struts-tiles.tld</taglib-location>
  </taglib>
  
  <resource-ref>
  <res-ref-name>jdbc/mssql_books</res-ref-name>
  <res-type>javax.sql.DataSource</res-type>
  <res-auth>Container</res-auth>
  </resource-ref>

</web-app>


我執行了一個hellowolrd.zul,執行的內容如下…
1
2
3
4
5
<?xml version="1.0" encoding="utf-8"?>
<?page title="ZK::Hello World!"?>
<window title="My First window" border="normal" width="200px">
  Hello, World!
</window>


附檔為我的錯誤訊息以及lib放置的位置圖…

先前在做struts的設定時有將struts的tld檔放進來,可是像大大所講的zk設定、以及我看了文件的設定都只有提到將lib放置,並把web.xml加入有zk的設定即可、沒有另外加上其它的設定,不知是那發生問題 ...

可以麻煩大大幫忙看一下嗎?謝謝~ Blush

pic.zip (66.32k)


javalien edited on 2006-10-23 09:16
reply to postreply to post
studying struts ... ☆
http://www.andykhan.com/jexcelapi/download.html
話題樹型展開
人氣 標題 作者 字數 發文時間
35245 [精華] 簡介 ZK - Ajax but no Javascript CMHuang 1692 2006-09-29 00:21
31833 Re:簡介 ZK - Ajax but no Javascript suzanyu 254 2006-09-29 00:30
17204 Re:簡介 ZK - Ajax but no Javascript ckbbc 145 2008-04-04 21:21
17006 Re:簡介 ZK - Ajax but no Javascript sunts 167 2008-04-09 13:05
14895 Re:簡介 ZK - Ajax but no Javascript lundi 358 2008-07-10 00:55
15801 Re:簡介 ZK - Ajax but no Javascript lundi 739 2008-07-10 09:57
15486 Re:簡介 ZK - Ajax but no Javascript littlebear00 531 2008-07-31 13:58
29936 Re:簡介 ZK - Ajax but no Javascript garyshen 30 2006-10-12 09:33
29843 Re:簡介 ZK - Ajax but no Javascript kebin_liu 159 2006-10-12 09:47
30011 Re:簡介 ZK - Ajax but no Javascript seedliu 200 2006-10-12 21:58
30597 Re:簡介 ZK - Ajax but no Javascript CMHuang 2088 2006-10-12 23:03
29667 Re:簡介 ZK - Ajax but no Javascript javalien 213 2006-10-19 13:01
29629 Re:簡介 ZK - Ajax but no Javascript CMHuang 314 2006-10-19 15:41
29562 Re:簡介 ZK - Ajax but no Javascript smallchickenray 273 2006-10-22 19:26
29384 Re:簡介 ZK - Ajax but no Javascript CMHuang 361 2006-10-23 12:29
29891 Re:簡介 ZK - Ajax but no Javascript javalien 5892 2006-10-23 09:02
29429 Re:簡介 ZK - Ajax but no Javascript CMHuang 645 2006-10-23 12:38
29575 Re:簡介 ZK - Ajax but no Javascript javalien 166 2006-10-23 13:22
28897 Re:簡介 ZK - Ajax but no Javascript gogo99 81 2006-11-24 14:57
26981 Re:簡介 ZK - Ajax but no Javascript good318 300 2007-01-24 12:32
26839 Re:簡介 ZK - Ajax but no Javascript CMHuang 410 2007-01-24 12:59
26839 Re:簡介 ZK - Ajax but no Javascript good318 65 2007-01-24 14:17
26743 Re:簡介 ZK - Ajax but no Javascript CMHuang 154 2007-01-24 17:48
26840 Re:簡介 ZK - Ajax but no Javascript good318 267 2007-01-24 21:10
27939 Re:簡介 ZK - Ajax but no Javascript xuon 289 2007-05-30 11:08
» JWorld@TW »  AJAX討論區 » ZK

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