hi all, i have index.html which is in the context root.that is mentioned below.how it recognises the servlet which is in web-inf/classes folder,although i mentioned the servlet in web.xml. I mentioned only anchor elment and give the url pattern as parameter to anchor tag.how it is doing such a great task.I want some help regarding this confusion.plese help me.
my confusion is why container look in the web.xml for the anchor tag.
It does not look for the anchor tag. When clicking on the tag "the url set in the anchor tag" (which means 'myservlet' in your example ) is sent in the request. The container grabs the request and search is "the url" is mapped to a servlet.
The anchor tag is an HTML thing. No relation with the container.
Joined: Nov 28, 2005
hi Satou kurinosuke, thanks friend,now i am clear.I got the concept behind this.