Your URL pattern match in web.xml is incorrect. It should be something like /servlet/ResponseDemo, judging from your index2.html action. At the moment, you are matching when the context/ appears in your URL and redirects to the servlet rather than allowing the static content to be sent.
Thanks. I changed it to
and it works.