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

  • 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
    Have a look at spring-social-showcase as an example...

    Keith

    Comment


    • #3
      Im 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.

      Comment


      • #4
        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

        Comment


        • #5
          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>

          Comment

          Working...
          X