Hi, I have an existing web application based on Spring and Spring MVC. I've seen a lot of articles describing how to integrate Spring and Wicket, but haven't find one about integrating Wicket pages into Spring MVC controller dispatch scheme.
What I'm trying to achieve is to dispatch certain URLs to Wicket pages by means of Spring's DispatcherServlet. The application already has a large set of URL-to-controller mappings. The idea is that once a web page is implemented/migrated to Wicket, only URL mapping has to be changed to dispatch to Wicket servlet. web.xml: <servlet> <servlet-name>DispatcherServlet</servlet-name> <servlet-class> org.springframework.web.servlet.DispatcherServlet </servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>DispatcherServlet</servlet-name> <url-pattern>/*</url-pattern> </servlet-mapping> Spring config: <bean id="urlMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping"> <property name="mappings"> <props> <prop key="/some/page">wicketController</prop> </props> </propery> </bean> <bean id="wicketController" class="org.springframework.web.servlet.mvc.ServletWrappingController"> <property name="servletClass" value="wicket.protocol.http.WicketServlet"/> <property name="initParameters"> <props> <prop key="applicationClassName"> myapplication.WicketApplication</prop> </props> </property> </bean> Actually the URL /some/page is dispatched correctly, but Wicket engine responds with error 404. How could I accomplish my goal, or am I heading the wrong direction at all? Thanks, Uladzimir. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user