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 ...
Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
yes you can do it. Servlet is also a java program. you may call any function of any java class from it. and can also pass the parameter
Perform for today. Adapt for tomorrow.
Consider Paul's rocket mass heater. |