aspose file tools*
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 Spring in Action this week in the Spring 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: 1666
    
    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?