Spring Framework
  1. Spring Framework
  2. SPR-7545

Update documentation and XSD for mvc:default-servlet-handler

    Details

    • Type: Task Task
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Complete
    • Affects Version/s: 3.0.4
    • Fix Version/s: 3.0.5
    • Component/s: Web
    • Labels:
      None

      Description

      It seems that the default-servlet-handler tag has not yet been added to the schema at http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd.

      For now, I can get the expected feature by manually adding a DefaultServletHttpRequestHandler bean to my context, a la DefaultServletHandlerBeanDefinitionParser:

      <bean class="org.springframework.web.servlet.resource.DefaultServletHttpRequestHandler" />
      <bean class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
      	<property name="urlMap">
      		<util:map>
      			<entry key="/**"
      				value="org.springframework.web.servlet.resource.DefaultServletHttpRequestHandler" />
      		</util:map>
      	</property>
      </bean>
      <bean class="org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter" />
      

      Furthermore, forcing <mvc:default-servlet-handler /> into my configuration does work, though Eclipse still finds it in error.

      It appears that the related documentation is out of sync with the API. The documentation discusses the DefaultServletHttpHandler, but the class appears to be named DefaultServletHttpRequestHandler. Reference: http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/mvc.html#mvc-default-servlet-handler

        Issue Links

          Activity

          Hide
          Jeremy Grelle added a comment -

          I have made the necessary tweaks to the reference docs to reflect the current state.

          Show
          Jeremy Grelle added a comment - I have made the necessary tweaks to the reference docs to reflect the current state.
          Hide
          Jeremy Grelle added a comment -

          Chris - All of the necessary reference manual edits for this issue are in place now. spring-mvc-3.0.xsd was updated for 3.0.4 and didn't need further changes here, but it never got uploaded to www.springframework.org. I am re-assigning the issue to you in hopes you can ensure it gets uploaded for 3.0.5.

          Show
          Jeremy Grelle added a comment - Chris - All of the necessary reference manual edits for this issue are in place now. spring-mvc-3.0.xsd was updated for 3.0.4 and didn't need further changes here, but it never got uploaded to www.springframework.org. I am re-assigning the issue to you in hopes you can ensure it gets uploaded for 3.0.5.
          Hide
          Chris Beams added a comment - - edited

          Resolved, thanks Jeremy. Regarding publication of spring-mvc-3.0.xsd, I've opened a separate issue for this. See SPR-7555.

          Show
          Chris Beams added a comment - - edited Resolved, thanks Jeremy. Regarding publication of spring-mvc-3.0.xsd , I've opened a separate issue for this. See SPR-7555 .

            People

            • Assignee:
              Chris Beams
              Reporter:
              James Earl Douglas
              Last updater:
              Trevor Marshall
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 32 weeks, 2 days ago