You could use a different handler mapping strategy...
Code:
<beans>
<bean id="handlerMapping"
class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
<property name="interceptors">
<list>
<ref bean="myInterceptor"/>
</list>
</property>
<property name="mappings">
<props>
<prop key="/search.action">myController</prop>
</props>
</property>
</bean>
<bean id="handlerMapping2"
class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
<property name="mappings">
<props>
<prop key="/login.action">myController</prop>
</props>
</property>
</bean>
<bean id="myInterceptor" class="com.foo.bar.Interceptor"/>
<beans>
Regards,
Darren Davison.
Public Key: 0xE855B3EA