Announcement Announcement Module
Collapse
No announcement yet.
URL Mapping : going crazy Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
Working...
X