-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4966335
By: firedup0205
Hic.. HenriChen and Dennis Chen tell some discussions to read Small talks ..
to embeded ZUL tags inside JSP Pages by one linked they post.. but I can't open that page! ???
..... In ...ZK Small Talks - Work with Legacy Web Applications, Part II
- JSP...
..........................Step 1.................................
inside WEB-INF/web.xml <========== note
I changed this whole code:
<!-- Uncomment if you want to use the ZK filter to post process the HTML output
generated by other technology, such as JSP and velocity.
<filter>
<filter-name>zkFilter</filter-name>
<filter-class>org.zkoss.zk.ui.http.DHtmlLayoutFilter</filter-class>
<init-param>
<param-name>extension</param-name>
<param-value>html</param-value>
</init-param>
<init-param>
<param-name>compress</param-name>
<param-value>true</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>zkFilter</filter-name>
<url-pattern>/test/filter.dsp</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>zkFilter</filter-name>
<url-pattern>/test/filter2.dsp</url-pattern>
</filter-mapping>
-->
By this code: <================= note
<filter>
<filter-name>zkFilter</filter-name>
<filter-class>org.zkoss.zk.ui.http.DHtmlLayoutFilter</filter-class>
<init-param>
<param-name>extension</param-name>
<param-value>html</param-value> <!-- Use XHTML components as default. -->
</init-param>
</filter>
<filter-mapping>
<filter-name>zkFilter</filter-name>
<url-pattern>*.jsp</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>INCLUDE</dispatcher>
<dispatcher>FORWARD</dispatcher>
<dispatcher>ERROR</dispatcher>
</filter-mapping>
.............................Step 2......................
//In Test.jsp:
<form action="Processing.jsp" xmlns:x="http://www.zkoss.org/2005/zul">
<table>
<tr>
<td>Title</td>
<td><x:textbox name="txtUserName" value=""/></td>
</tr>
<tr>
<td>
<input type="submit" value="Update"/>
</td>
<td>
<input type="reset"/>
</td>
</tr>
</table>
</form>
................Result...............
It work very well ... that I mixed ZK Tags inside JSP Page (^^) Hiiii .......... But...Huuu..Huu..Hu...
All the JSP Page which are not mixed ZK Tags by namespace (I use <jsp:include....>) is error (if not change Web.xml they work well).... <======Help me!
Asked: 2008-05-16 05:42:42 +0800
Seen: 183 times
Last updated: May 16 '08