aspose file tools*
The moose likes Spring and the fly likes What is dispatcher servlet ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "What is dispatcher servlet ? " Watch "What is dispatcher servlet ? " New topic
Author

What is dispatcher servlet ?

Brajesh Pant
Greenhorn

Joined: Jun 15, 2012
Posts: 3
I am new to spring i want to know that what is dispatcher servlet and how its is configured ?
Actually i know that its like normal servelt mapping written in web.xml

But my question is that what is dispatcher-servlet.xml and all ther related stuffs
Pandian Raman
Greenhorn

Joined: Jun 21, 2011
Posts: 12
The context xml (dispatcher-servlet.xml) will map with flow as follows
"servletname"-servlet.xml.
Basically this context xml is used to define the ban and simple mapping url and etc.
So I hope the servlet name is defined as "dispatcher" in your web.xml I suppose, apart from that there is no much more information.
Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1666
    
    7

The best place to learn about stuff like this is the reference documentation which is really quite good. Please have a read on the section about the dispatcher servlet. If you still have questions after reading I would be happy to help you answer them.

http://static.springsource.org/spring/docs/3.1.x/spring-framework-reference/html/mvc.html#mvc-servlet


[How To Ask Questions][Read before you PM me]
Brajesh Pant
Greenhorn

Joined: Jun 15, 2012
Posts: 3
Thanks bill
Can you tell me what is the structure of the files in Dynamic project created in Spring source Tool suite .. in eclipse is short and sweet but its looks different in spring source toolsuite ... can you explain the directory structure where what lies.
As i have downloaded a spring mvc temple form project templates. I want to understand the flow of the program. Thanks in advance
Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1666
    
    7

Can you be a little specific about what differences you have questions on? A spring app still adheres to the same directory structure of a standard web-app.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What is dispatcher servlet ?