Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Ray Clark
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic