File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes Spring Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring "root web application context" versus "application context files"" Watch "Spring "root web application context" versus "application context files"" New topic
Author

Spring "root web application context" versus "application context files"

Maan Suraj
Ranch Hand

Joined: Dec 20, 2007
Posts: 299
I was going through link http://www.ervacon.com/products/swf/intro/index.html and have quite a few number of questions on the same. Below is the extract from that site

The ContextLoaderListener, which initializes the Spring Framework when our web application is loaded by the servlet engine (e.g. Tomcat). The root application context will be loaded from the services-config.xml classpath resource.
A Spring dispatcher servlet named phonebook, loading its configuration from two application context files: phonebook-servlet-config.xml and phonebook-webflow-config.xml. This servlet is also configured to handle all requests matching the URL pattern *.htm, e.g. all requests for the sample application.


I was not sure how the root application context file (services-config.xml) differs from application context files (phonebook-servlet-config.xml and phonebook-webflow-config.xml).
I want to understand how Spring uses theses files .Also, I am not able to get what init params we should give to DispatcherServlet .


Man Suraj
Someone says "Impossible is nothing". The man next him says "Let me see you licking your elbow tip!"
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring "root web application context" versus "application context files"
 
Similar Threads
WHat is the application conext in java?
Replacing JSF navigation rules with jBPM
migrate a project from spring 2.5 Jboss 4.2.3 to jboss 6, a NoSuchBeanDefinitionException
My Faces Tomahawk tags not rendering in XHTML
[Urgent] How to configure Datasource externally