0

Issue using ZK 6.0.2 with Spring 3.1. Can't do any urlrewrite but same code under zk 5.0.10 works

asked 2012-09-09 18:52:41 +0800

blacksensei gravatar image blacksensei
234 2

updated 2012-09-09 18:59:04 +0800

Hello Experts!!


i've hit a blocker for a while now.in order to use url-rewrite to achieve cute url i leverage on Spring MVC without its controller. So my mvc application context is like :


<mvc:annotation-driven ></mvc:annotation>
    <bean class="org.zkoss.spring.web.servlet.view.ZkResourceViewResolver">
        <property name="prefix" value="/WEB-INF/admin/views/" ></property>
        <property name="suffix" value=".zul" ></property>
    </bean>
    
    <mvc:view-controller path="/" view-name="dashboard"></mvc:view> 


below is a snippet of config-zk.xml

<import resource="orsuite-webapp-mvc.xml" ></import>

below is a snippet of the web.xml


	 <context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>/WEB-INF/config-zk.xml</param-value>
    </context-param>
    <servlet>
        <servlet-name>orservlet</servlet-name>
        <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
        <init-param>
            <param-name>contextConfigLocation</param-name>
            <param-value>/WEB-INF/config-zk.xml</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
    </servlet>

    <servlet-mapping>
        <servlet-name>orservlet</servlet-name>
        <url-pattern>/</url-pattern>
    </servlet-mapping>
	
	<listener>
        <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
    </listener>


i use maven to manage my project thus, changing version in the pom file is easy. with the combination

zk 5.0.10 with zkspring 3.0 // it works
zk 5.0.10 with zkspring 3.1// it works
zk 6.0.2 with zkspring 3.0 //it doesn't work page not found
zk 6.0.2 with zkspring 3.1 //it doesn't work page not found

is something broken with the 6?

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2012-09-12 11:15:41 +0800

blacksensei gravatar image blacksensei
234 2

No one tried ? @terrytornado ?

link publish delete flag offensive edit

answered 2012-09-13 07:03:37 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

PUSH!

blacksensei, sorry, i have not jump to zk 6 at time.

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

RSS

Stats

Asked: 2012-09-09 18:52:41 +0800

Seen: 273 times

Last updated: Sep 13 '12

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