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 do you mean by the servlet chaining?
What if we pass negative value in load-on-startup?
Why filter is used in servlet?
I have a requirement Here we have a ResultSet object that will contain 50 records i need to print those recors in to a webpage(i.e; view according to MVC architectures that mybe servlet or jsp) . Here i need to print the records 10 per page that is 1 to 10 in page one and 11 to 20 in page two like remaining will be appeared in other pages we need to display those page numbers whenever we click on that page number we will go to that page and display 10 records like we will display 5 pages it is like this << 1 2 3 4 5 next >>
Which application server is best for java?
Why doesn’t a servlet include main()? How does it work?
What is context in servlet?
What methodology can be followed to store more number of objects in a remote server?
Explain how to improve Servlet Performance?
What is difference between jsp and servlet?
What is the main purpose of java servlets?
Is servlet synchronized?
how many jsp scripting elements are there and what are those?
What is the directory structure of web application?
What is cookie? Why is cookie used?