This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 1646
    
    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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
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