-
Oct 26th, 2005, 09:24 AM
#1
URL Mapping : going crazy
Hi,
I have a few problems with urlmapping and I don't see what I'm doing wrong.
I want two things :
- http://server/url/admin/listall points to listAllProducts method in a delegate
- if nothing after /admin is entered, it calls the overview method in the same delegate.
Here's my config :
<bean id="propsResolver"
class="org.springframework.web.servlet.mvc.multiac tion.PropertiesMethodNameResolver">
<property name="mappings">
<props>
<prop key="/listall">listAllProducts</prop>
<prop key="/*">overview</prop>
</props>
</property>
</bean>
<bean id="urlMapping" class="org.springframework.web.servlet.handler.Sim pleUrlHandlerMapping">
<property name="mappings">
<props>
<prop key="/main">ProductController</prop>
<prop key="/monitor/**">FileController</prop>
<prop key="/help/**">FileController</prop>
<prop key="/admin/">paramMultiController</prop>
</props>
</property>
<property name="defaultHandler"><value>FileController</value></property>
</bean>
The overview stuff works, entering /admin shows my my overview page. Entering /admin/listall does not work. It gives an exception that listall.jsp is not found.
Someone knows what I'm doing wrong here ?
Thanks a lot !
Henk
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules