pulse00
Apr 22nd, 2009, 08:25 AM
I'm trying to add a SimpleUrlHandlerMapping to my spring - blazeDS configuration to output a dynamically generated html page for a specific url.
This is the current mapping for the spring DispatcherServlet:
<servlet>
<servlet-name>Spring MVC Dispatcher Servlet</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/config/web-application-config.xml
</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Spring MVC Dispatcher Servlet</servlet-name>
<url-pattern>/messagebroker/*</url-pattern>
</servlet-mapping>
I've tried to add a SimpleUrlHandlerMapping as a bean in the applicationContext.xml like this:
<bean id="publicUrlMapping" class="org.springframework.web.servlet.handler.SimpleUrlH andlerMapping">
<property name="mappings">
<value>
/messagebroker/index.html=indexController
</value>
</property>
</bean>
But when a request comes in at /messageBroker/index.html, it's handled like this:
DEBUG SimpleUrlHandlerMapping - Mapping [/index.html] to handler 'flex.messaging.MessageBroker@9292ece'
So it's being handled by the flex MessageBroker, but what i'm trying to do is to map this request directly to my Controller, without any blazeds interaction.
Anyone knows if this is possible somehow ?
This is the current mapping for the spring DispatcherServlet:
<servlet>
<servlet-name>Spring MVC Dispatcher Servlet</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/config/web-application-config.xml
</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Spring MVC Dispatcher Servlet</servlet-name>
<url-pattern>/messagebroker/*</url-pattern>
</servlet-mapping>
I've tried to add a SimpleUrlHandlerMapping as a bean in the applicationContext.xml like this:
<bean id="publicUrlMapping" class="org.springframework.web.servlet.handler.SimpleUrlH andlerMapping">
<property name="mappings">
<value>
/messagebroker/index.html=indexController
</value>
</property>
</bean>
But when a request comes in at /messageBroker/index.html, it's handled like this:
DEBUG SimpleUrlHandlerMapping - Mapping [/index.html] to handler 'flex.messaging.MessageBroker@9292ece'
So it's being handled by the flex MessageBroker, but what i'm trying to do is to map this request directly to my Controller, without any blazeds interaction.
Anyone knows if this is possible somehow ?