-
FEATURED COMPONENTS
First time here? Check out the FAQ!
i need to hide the `.zul` from the url and i tried the url mapping in the web.xml
<servlet-mapping> <servlet-name>zkLoader</servlet-name> <url-pattern>/home</url-pattern> </servlet-mapping>
if i call the http://localhost:8080/home/ the index.zul is not mapped i am testing with an default page.
yes i have an home folder and an index.zul page inside it . if i try to view http://localhost:8080/home/ the zul is displayed in the browser
<zk> <window> <button id="cl" label="go"></button> </window></zk>
how can i map the home.zul in the root of the WebContent folder to make it as clean url as like http://localhost:8080/home/
Hi
I try your setting
<servlet-mapping> <servlet-name>zkLoader</servlet-name> <url-pattern>/home</url-pattern> </servlet-mapping>
You mean only text(code) displayed in the page?
if yes, please check the following code in your web.xml.
<servlet-mapping> <servlet-name>zkLoader</servlet-name> <url-pattern>*.zul</url-pattern> </servlet-mapping> <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list>
if not, please provide more detail.
Asked: 2011-07-15 01:54:00 +0800
Seen: 424 times
Last updated: Jul 24 '11