It is not possible
I looked around and found a german site tht explains, that the spec
of java-servlet define the WEB-INF folder as not client accessable,
cos it contains data as classes that never should be accessed from outside the server.
If you have the problems in a folder that is not WEB-INF:
You should better use Executions.sendRedirect(java.lang.String uri)
to redirect by a button click with server-side action needed.
If you just want to redirect, set the buttons href.
It should look like
Executions.sendRedirect("/zul/home.zul");
or in java:
myButton.setHref("/zul/home.zul");
in zul:
<button ... href="/zul/home.zul" ...>
Edit
I could write much, but the best would be to say, if you
- do not use Spring follow this and if you get 404
check your deploy options/ deployed stuff. - use Spring, what I would prefer because of easy
ajax login site, security annotations at java methods
and easy zk integration, follow the zk guide for spring.
If you still have 404 and can't figure them out, please post your
configuration files or classes.