Results 1 to 3 of 3

Thread: Differnce between dispatcher-servlet.xml and spring-servlet.xml

  1. #1
    Join Date
    Sep 2011
    Posts
    8

    Default Differnce between dispatcher-servlet.xml and spring-servlet.xml

    I have just started Spring MVC. I am little confused that what is the difference between dispatcher-servlet.xml and spring-servlet.xml files.

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,625

    Default

    The name... That is all...

    The DispatcherServlet has a mechanism to find files to load. By default it loads a file called [servletname]-servlet.xml... So in the first case the servlet has the name 'dispatcher' and in the other the name 'spring'... And that is all there is... no more no less.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  3. #3
    Join Date
    Sep 2011
    Posts
    8

    Default

    Excellent, thanks.

Tags for this Thread

Posting Permissions

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