In another html <form action="myservlet" method=Post>
please help me what method(doGet,doPost or service) I can override in servlet-(myservlet is extending HttpServlet)to do the actions.I want to have only one servlet(myservlet) for both the html files. Thanks in advance.
Many of the people using Javaranch do not speak English as a first language. Some rely on lanugage translation software to interpret the text on these pages. We ask that you do not use abbreviations when typing here. Use "you" instead of "u" and "you are" or "you're" instead of "ur". Such abbreviations confound this software making it impossible for these people to read your answers.
I think it's pretty common to override doGet and doPost and have both call a common method like doMyThing. Unfortunately it says you're not thinking about the meaning of GET or POST (or PUT or DELETE) and designing with the meaning in mind.
For some neat ideas on this read up on Restful Architecture here or on the Wikipedia.
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi