give the syntax of doGet() and doPost()?

Answer Posted / rajshri

public void doGet(HttpServletRequest req,HttpServletResponse res)throws ServletException,IOException
{
doGet(req,res)
}

public void doPost(HttpServletRequest req,HttpServletResponse res) throws ServletException,IOException
{
doPost(req,res)
}

Is This Answer Correct ?    13 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is called Scriptlet?

549


Write a hello world program using servlets.

576


What is setattribute in servlet?

544


Which java application server is the best?

537


What is meant by cookies?

601






How to generate the server side programming and the advantages of it over the other languages?

546


How can we refresh automatically when new data is entered into the database?

586


What is servlet name in web xml?

541


What are the differences between servlet context vs servlet config?

570


What are the benefits of using servlet over cgi?

566


Explain servlet events?

554


When jsessionid is created?

595


What are the disadvantages of storing session state in cookies?

619


What is servlet invoker?

593


Why do we use sendredirect() method?

540