The service() method receives standard HTTP requests and dispatches them to the doXXX methods defined in the servlet class. Suppose u specify method="post" in your HTML from then the service method of your servlet will be called and from that method doPost method gets called.
"krishna" The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at JavaRanch's naming policy. . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in with a new name which meets the requirements. Thanks.