Results 1 to 1 of 1

Thread: Multiple mvc:mappings?

  1. #1
    Join Date
    May 2011
    Posts
    8

    Default Multiple mvc:mappings?

    I want to define multiple mvc:mappings for a HandlerInterceptor. I tried doing this:

    Code:
        <mvc:interceptors>
            <mvc:interceptor>
                <mvc:mapping path="/home*"/>
                <mvc:mapping path="/path1/*"/>
                <mvc:mapping path="/path2/*"/>
                <mvc:mapping path="/path3/*"/>
                <bean class="net.sandbox.handlerinterceptors.SessionBeanInserter" />
            </mvc:interceptor>
        </mvc:interceptors>
    This doesn't seem to work except for the first mapping pattern. What's the proper way to do this? Or even better: I only need to exclude /static/* URLs, so can I define an exclude pattern instead?

    Edit: solved... I need to use ** to match subdirs.
    Last edited by pdedecker; Jun 7th, 2011 at 07:47 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •