0

How to changing the .zul extensions in ."any" extension?

asked 2013-05-08 01:59:36 +0800

ninfarave gravatar image ninfarave
3 1
http://www.udo.edu.ve/

updated 2013-05-09 23:21:26 +0800

Sorry, I'm trying to use the .zhtml, but the page is not displayed adequately only shows a blank page. In the web.xml is declared the .zhtml: <servlet-mapping> <servlet-name> zkLoader <url-pattern> *.zhtml But still does not work, someone can tell me if there is something wrong in my code or if this is a bug. I'm using EclipseEE Juno, the zkeditor downloaded from the eclipse marketplace, apache tomcat 7.0 and zkEE demo.

I have reviewed the forum these url:

  1. forum.zkoss.org/question/63483/how-to-hide-the-zul-extension-shown-in-the-url/
  2. books.zkoss.org/wiki/ZK%20Configuration%20Reference/web.xml/Sample%20of%20web.xml
  3. forum.zkoss.org/question/44326/changing-the-zul-extensions-in-html-extension/

But I can not make it work

delete flag offensive retag edit

6 Answers

Sort by » oldest newest most voted
0

answered 2013-05-09 23:31:58 +0800

sirlordt gravatar image sirlordt
16 1

For map the .foo extention to a .zul file, you need modify the web.xml and zk.xml add

in web.xml file

<servlet-mapping> <servlet-name>zkLoader</servlet-name> <url-pattern>*.foo</url-pattern> </servlet-mapping>

in zk.xml file inside from <zk> section

<language-mapping> <language-name>zul</language-name> <extension>foo</extension> </language-mapping>

Last section is lack of zk documentation.

link publish delete flag offensive edit
0

answered 2013-05-08 10:21:18 +0800

mikrobe gravatar image mikrobe
9 1 3

Do you want to change file extension or hide it? For the latter, this worked for me: http://forum.zkoss.org/question/63248/url-rewrite-and-project-setup/

link publish delete flag offensive edit
0

answered 2013-05-08 17:33:30 +0800

ninfarave gravatar image ninfarave
3 1
http://www.udo.edu.ve/

I need to change the extension, eg "index.zul" to "index.zhtml". I renamed the file and try to use it from the browser url to access the application only shows me a malformed page, no styles, no form, the code of the website has information from javascript does not work.

link publish delete flag offensive edit
0

answered 2013-05-10 03:12:42 +0800

ninfarave gravatar image ninfarave
3 1
http://www.udo.edu.ve/

Thank you! works fine.

link publish delete flag offensive edit
0

answered 2014-07-11 03:45:18 +0800

imranmali gravatar image imranmali
1

how it works? For me its still showing malformed page.

link publish delete flag offensive edit
0

answered 2014-07-11 08:12:56 +0800

Johanson9 gravatar image Johanson9
1
http://www.bankowerady.pl...

it works thanks a lot

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
2 followers

RSS

Stats

Asked: 2013-05-08 01:59:36 +0800

Seen: 116 times

Last updated: Jul 11 '14

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More