This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
In case of web server,to run a servlet on browser we have to specify as /myPackage/servlet/MyServlet in <url-pattern> But how come in application server i can access the servet just as /myPackage/MyServlet. I mean why we have to tell the web container explicitly the servlet???And why it is not needed in case of Application server which contain web container?