Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What is the major difference between context parameter and context attribute?

1116


Explain in brief the directory structure of a web application?

1112


What are the type of protocols used in httpservlet?

1089


Explain the difference between get and post method in servlet?

1144


What are the key methods that are involved in processing of http servlets?

1113


How do you get the ip address of the client in servlet?

1015


What do you mean by httpservlet and how it is different from the genericservlet?

1056


How do we go with database connection and log4j integration in servlet?

1175


Why is it that we can't give relative URL's when using ServletContext.getRequestDispatcher() when we can use the same while calling ServletRequest.getRequestDispatcher()?

1103


How does tomcat servlet container work?

1080


What is pure servlet?

1212


When a client request is sent to the servlet container, how does the container choose which servlet to invoke?

1029


What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?

1033


What is the requirement of servlet config and servlet context implemented and how are they implemented?

1006


What is difference between cookies and httpsession?

1098