alguem poderia me ajudar, estou tentando configurar um MultiActionController,
meu xml esta assim :
[code]
<bean id="propsResolver" class="org.springframework.web.servlet.mvc.multiaction.PropertiesMethodNameResolver">
<property name="mappings">
<value>
/pages/welcome.do=teste
</value>
</property>
</bean>
<bean id="paramMultiController" class="org.springframework.web.servlet.mvc.multiaction.MultiActionController">
<property name="methodNameResolver" ref="propsResolver"/>
<property name="delegate" ref="selecionarGrupo"/>
</bean>[/code]
quando tento acessar a url projeto/pages/welcome.do me aparece a msg no console :
[PageNotFound] No mapping for [/projeto/pages/welcome.do] in DispatcherServlet with name 'SpringDispatcher'
[]'s
Kenobi
#2
//-------------------- Mapeamento
<bean id="urlMapping"
class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping>
<property name="mappings">
<props>
<prop key="/welcome.do">paramMultiController<prop>
</props>
</property>
</bean>
//-------------definição do seu controller
<bean id="paramMultiController" class="br.com.guj.SeuController" singleton="true">
<property name="methodNameResolver" ref="paramMultiControllerResolver" />
</bean>
//resolução dos seus metodos
<bean id="paramMultiControllerResolver"
class="org.springframework.web.servlet.mvc.multiaction.PropertiesMethodNameResolver">
<property name="mappings">
<props>
<prop key="/welcome.do">doTeste</prop>
</props>
</property>
</bean>
Bão testa aí, deve funcionar … é noix Booom shankar !!