can i call destroy() method in init() method of servlet
Answer Posted / shekhar
no,we can't call destroy() in init() method.because of
init() and dstroy() methods are take care by web container
| Is This Answer Correct ? | 7 Yes | 15 No |
Post New Answer View All Answers
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 >>
Explain the custom jsp tags and the beans.
Is java servlet still used?
What's the difference between authentication and authorization?
What is difference between the HTTP Servlet and Generic Servlet? Explain about their methods and parameters?
How can we achieve transport layer security for our web application?
What is the servlet?
How forward () method is different from send redirect () method?
What is meant by cookies?
Explain Action Servlet?
Where do you define dispatcherservlet?
What is cookie? Why is cookie used?
How do we share data using 'getservletcontext ()?
What are the type of protocols used in httpservlet?
When a client request is sent to the servlet container, how does the container choose which servlet to invoke?