wood burning stoves 2.0*
The moose likes Spring and the fly likes Static content served up by the Dispatcher Servlet or the web container? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Static content served up by the Dispatcher Servlet or the web container?" Watch "Static content served up by the Dispatcher Servlet or the web container?" New topic
Author

Static content served up by the Dispatcher Servlet or the web container?

Ray Clark
Ranch Hand

Joined: Aug 16, 2012
Posts: 52
What do you guys/gals mostly see? The static content (CSS, JavaScript, Images, etc) served up by the Dispatcher Servlet or served up by the Web Container?

Right now my Dispatcher Servlet is set to process *.htm, is it usually set to something else?

Thanks,
Ray
Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1648
    
    7

If I have just one dispatcher servlet I typically set it to /. I also let the dispatcher servlet serve the static resources. I find this more convenient and flexible as it does not involve a container specific solution or dependency on a default servlet.


[How To Ask Questions][Read before you PM me]
 
wood burning stoves
 
subject: Static content served up by the Dispatcher Servlet or the web container?
 
Similar Threads
container
Request Dispatcher access file in another drive
WEB-INF
one interview question
Maven project for separate deployment of static content