actualy i have created a JSP from which i am calling this Servlet and also doGet method is called bcoz i have used it in my JSP.
Indeed, main methods have no meaning in servlet containers, and won't be called.
i think Sudhir is right bcoz how will the main method be called?
No. Your class will be used if the code is being called properly. That's why I asked the various questions above. Answering those will help us pinpoint the problem.
is there any changes i must make in web.xml so as to include java class in that servlet
Originally posted by dhwani mathur:
... method is called bcoz i have used it ...