I'm not sure. I have been doing it this way since I installed Spring 1.0.2 and used the examples to get started. I had the same question why the path was being duplicated here but did not follow up on it since it worked and got me going. Right now, I am actually using XML <!ENTITY's so as to maintain the path in one place for the xxxx-servlet.xml file. So actualy, this is what I have:
Code:
<!ENTITY path.browse.search "/browse/search.htm">
Code:
<property name="formView">
<value>search</value>
</property>
<property name="successView">
<value>&path.browse.search;</value>
</property>
Code:
<bean id="urlMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
<property name="interceptors">
<list>
<ref bean="localeChangeInterceptor" />
</list>
</property>
<property name="mappings">
<props>
<prop key="&path.browse.search;">searchController</prop>
Code:
<bean id="pathMapping" class="java.util.HashMap">
<constructor-arg>
<map>
<entry key="path.browse.search"><value>&path.browse.search;</value></entry>
This is use for my breadcrumbs.