0

Change update-uri which value is /zkau by other PATH

asked 2015-12-23 11:39:10 +0800

zkau gravatar image zkau
1

Hi,

I'd like to change zkloader's uri which value is always /zkau by other value, as example, i want to write in my web.xml:

<servlet>
    <description>
    The 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>/ds</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
</servlet>

but when i run my server i debug source files of zk and i can find one servlet initialized zkloader which update-uri is /ds, but after i can find other servlet initialized which value is /zkau. My problem is to debug in firebug a request ajax, i always find this ->

......./wlpl/TRTE-MAPR/zkau

and i hope find this ->

......./wlpl/TRTE-MAPR/ds

thanks in advance

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2015-12-24 02:14:28 +0800

cor3000 gravatar image cor3000
4366 2 7
ZK Team

did you also update the servlet mapping of the update servlet?

    <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>/ds/*</url-pattern>
<!--        <url-pattern>/zkau/*</url-pattern> -->
    </servlet-mapping>
link publish delete flag offensive edit
Your reply
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
1 follower

RSS

Stats

Asked: 2015-12-23 11:39:10 +0800

Seen: 34 times

Last updated: Dec 24 '15

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