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’s the difference between sendredirect and forward methods
Which interface must be implemented by all servlets?
What are the functions of an intercepting filter?
What do you mean by deployment descriptor?
Are Servlets Thread Safe? How to achieve thread safety in servlets?
What are the disadvantages of storing session state in cookies?
What is cookie? Why is cookie used?
How do I use cookies to store session state on the client?
How can we invoke another servlet in a different application?
What is session?
Explain the difference between a web server and a web container?
Which protocol will be used by browser and servlet to communicate
what is multiple server?
What is war file?
What are the types of servlet?