Announcement Announcement Module
Collapse
No announcement yet.
Dispatcher servlet - url mapping Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Dispatcher servlet - url mapping

    I have my dispatcher servlet url mapping configuration like this below
    <bean id="uriMapping" class="org.springframework.web.servlet.handler.Sim pleUrlHandlerMapping">
    <property name="mappings">
    <props>
    <prop key="/page1.html">firstController</prop>
    <prop key="/page2.html">secondController</prop>
    <prop key="/page3.html">thirdController</prop>
    </props>
    </property>
    </bean>

    Everything works fine, but I need to add one more entry in <props> tag. I need to hava sht like this:

    <prop key="/htmlPagesDir/**/*.html">forwardingController</prop>

    just to enable url's with /htmlPagesDir/ prefix and .html extenstion directly accessing my html pages withing webapp/htmlPagesDir

    What kind of controller to use, thank you for any help...
Working...
X