Announcement Announcement Module
Collapse
No announcement yet.
Simplify Mapping Definition for MultiActionController Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Simplify Mapping Definition for MultiActionController

    Assuming a MulitAction class has methods showA and showB.

    <bean id=myMultiAction" class="test.MyMuliAction">
    ...
    </bean>

    <bean id="urlMapping" class="org.springframework.web.servlet.handler.Sim pleUrlHandlerMapping">

    <property name="mappings">
    <props>
    <prop key="/showA.htm">myMultiAction.showA</prop>
    <prop Key="/showB.htm">myMultiAction.showB</prop>
    </props>
    </property>

    </bean>

    Users shouldn't really have to explicitly define a MethodNameResolver in the webapp context. Spring can do that for us!!!
Working...
X