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
What is the major difference between context parameter and context attribute?
Explain in brief the directory structure of a web application?
What are the type of protocols used in httpservlet?
Explain the difference between get and post method in servlet?
What are the key methods that are involved in processing of http servlets?
How do you get the ip address of the client in servlet?
What do you mean by httpservlet and how it is different from the genericservlet?
How do we go with database connection and log4j integration in servlet?
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()?
How does tomcat servlet container work?
What is pure servlet?
When a client request is sent to the servlet container, how does the container choose which servlet to invoke?
What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?
What is the requirement of servlet config and servlet context implemented and how are they implemented?
What is difference between cookies and httpsession?