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
How can you use a servlet to generate a plain text instead of html?
What do you mean by default initialization in java servlet?
Explain servlet.
What is the process for chaining servlet?
How to make sure a servlet is loaded at the application startup?
What is servlet lazy loading?
Why do you use session tracking in httpservlet?
What do you mean by session tracking?
What is a servlet context object?
What is servlet? Explain
How do you create a cookie using servlet?
What’s the difference between sendredirect and forward methods
Explain the features are in servlet 3?
How to get the server information in a servlet?
How can you create a session in servlet?