Announcement Announcement Module
Collapse
No announcement yet.
Handler Mapping Query :) Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Handler Mapping Query :)

    Hello All,

    Can we have multiple Handler Mappers handling the same URL and delegating to the same controller ??

    example:

    <bean id="urlMapping1" class="org.springframework.web.servlet.handler.Sim pleUrlHandlerMapping">
    <property name="interceptors">
    <list>
    <ref bean="someInterceptor"/>
    </list>
    </property>

    <property name="urlMap">
    <map>
    <entry key="/someURL.htm">
    <ref bean="someController" />
    </entry>

    </map>
    </property>
    </bean>

    </bean>

    <bean id="urlMapping2" class="org.springframework.web.servlet.handler.Sim pleUrlHandlerMapping">
    <property name="interceptors">
    <list>
    <ref bean="someInterceptor"/>
    </list>
    </property>

    <property name="urlMap">
    <map>
    <entry key="/someURL.htm">
    <ref bean="someController" />
    </entry>

    </map>
    </property>
    </bean>

    </bean>

    Do handler mappers have to contain unique URLs ??

    Waiting for a favorable reply
    Kind Regards.
    Hasnain Javed Khan.
    Last edited by hkhan45; Oct 21st, 2008, 05:38 AM.
Working...
X