Results 1 to 5 of 5

Thread: servlet-mapping

  1. #1
    Join Date
    Mar 2011
    Posts
    10

    Default servlet-mapping

    When trying to set the servlet-mapping of the DispatcherServlet that contains the controller to <url-pattern>/connect/*</url-pattern>, I cannot access the connect pages anymore. Shouldn't this work?

  2. #2
    Join Date
    Aug 2004
    Location
    Melbourne, FL
    Posts
    2,794

    Default

    Have a look at spring-social-showcase as an example...

    Keith
    Keith Donald
    Core Spring Development Team

  3. #3
    Join Date
    Mar 2011
    Posts
    10

    Default

    I´m trying to integrate spring social into a project that uses GWT. If I use the mapping from the example showcase ("/"), all requests seem to be caught by the controller.

  4. #4
    Join Date
    Aug 2004
    Location
    Melbourne, FL
    Posts
    2,794

    Default

    You might want to take a look at the work the Roo team has done to make GWT + MVC interoperate. If I recall, you can use the DispatcherServlet to serve up what's required for GWT and still retain a "/" mapping. Just a suggestion.

    Keith
    Keith Donald
    Core Spring Development Team

  5. #5
    Join Date
    Mar 2011
    Posts
    10

    Default

    I found some examples that integrate the GWT elements into jsp pages and use SimpleUrlHandlerMapping. Another solution could be mapping of the static content to the default servlet, for example:

    Code:
    <servlet-mapping>
        <servlet-name>default</servlet-name>
        <url-pattern>*.js</url-pattern>
    </servlet-mapping>

Posting Permissions

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