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 must be implemented by all servlets?
why we should override only no-agrs init() method.
What is servlet api used for conneting database?
Which interface must be implemented by all servlets?
What if we pass negative value in load-on-startup?
Why the container loads server at the application startup and how?
Whether we can get deadlock situation in servlets?
Explain the features are in servlet 3?
What is difference between get and post method?
Explain the lifecycle of a servlet?
Write a simple servlet program to print the contents of html.
What are the difference between session and cookies in servlet? Explain
What is the workflow of a servlet?
How is a servlet implemented in code?
How do we translate jsp?