How values can be passed from HTML page to servlet?

Answer Posted / satya

there are two ways in passing form data to a servlet

in case of the form using GET method
-------------------------------------

the form data is appended as a query string after the
end of the url in the address bar of the browser

in case of the form using POST method
--------------------------------------
the form data is added to the body part of the Http
protocol request body .this form data is called as payload

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

595


Write a program to show the functionality of servlets.

553


What is the life-cycle of servlets?

630


What is the use of request dispatcher interface?

565


Explain in brief the directory structure of a web application?

566






What is servletconfig?

543


What are the different types of servlets?

513


What is servlet used for?

694


Write a servlet to upload file on server.

593


Explain the working of service() method of a servlet.

498


What is the use of send redirect () method?

586


Define declaration.

613


Why servlet is used as controller ? Not JSP? I want complete explation?

648


What is Servlet API used for connecting database?

612


What is the functionality of actionservlet and requestprocessor?

592