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

Which java framework is most popular?

760


What are the various ways of session supervision in servlets?

724


Explain the architechure of a servlet?

809


Write a simple servlet program to print the contents of html.

766


What is session?

795


Why do we have servlet listeners?

782


What is the difference between Servlet Request and Servlet Context when calling a Request Dispatcher?

813


Can we use threads in Servlets?

827


What are sessions in servlets?

774


In the servlets, we are having a web page that is invoking servlets ,username and password? which is checks in database? Suppose the second page also if we want to verify

762


Is dispatcher servlet a singleton?

725


How to rectify errors in java servlet while compilation?

694


Explain the servlet context.

797


What is lazy loading and what is Generic Servlet Class?

805


Can we refresh servlet in client and server side automatically?

769