Hi guys.. Well can u tell me that why there is need of
"init()" , i mean why can not we initialize the servlet object
with the help of constructors?
Thank you.
Answer Posted / archana
When u create a servlet with a constructor it wont be a
complete servlet but will be in a akward state where it
cannot access Servlet Context and Config.It has to go
through the init() method (though we dont know what code is
written there) to be a complete servlet
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Differentiate between the web server and application server?
What is api in servlet?
What is the purpose of inter-servlet communication?
How to read request headers from servlets?
Define declaration.
What is servlet and how it works?
What's the servlet interface?
What are its drawbacks of cgi?
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 >>
How do you find out what client machine is making a request to your servlet
What is difference between GenericServlet and HttpServlet?
What's the difference between servlets and applets?
What is the workflow of a servlet?
What is setattribute in servlet?
What are different Authentication options available in Servlets.