How values can be passed from HTML page to servlet?
Answer Posted / dadhich
we can pass the values to servlet through from HTML Page as follows:-
create a form --> define <form action=Ser>
where Ser is a servlet java class in which we want to retrieve the value.in web-xml in <servlet> tag class name will be defined.
In Ser.java we can retrieve the value by writing as follows:
String login=request.getParameter("login");
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What are the drawbacks of cgi?
Difference between forward() method and sendredirect() method ?
Why doesn’t a servlet include main()?
Explain the lifecycle of a servlet?
What is meant by a servlet?
What is Request Dispatcher?
How do you configure a centralized error handler in servlets?
What do you mean by httpservlet and how it is different from the genericservlet?
What is the difference between a generic servlet and http servlet?
I Have A Plan to develop a Project in Struts,I want the template of struts project with Hibernate.Canany body provide me the required information?
Can you call a jsp from the servlet?
What is the major difference between servlet and applet?
What are the annotations used in servlet 3?
What is http servlet in java?
Explain the difference between servlet and cgi?