Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

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 >>

2968


Explain the custom jsp tags and the beans.

1069


Is java servlet still used?

1056


What's the difference between authentication and authorization?

1147


What is difference between the HTTP Servlet and Generic Servlet? Explain about their methods and parameters?

1070


How can we achieve transport layer security for our web application?

1040


What is the servlet?

1092


How forward () method is different from send redirect () method?

973


What is meant by cookies?

1082


Explain Action Servlet?

1093


Where do you define dispatcherservlet?

1052


What is cookie? Why is cookie used?

1060


How do we share data using 'getservletcontext ()?

1050


What are the type of protocols used in httpservlet?

1089


When a client request is sent to the servlet container, how does the container choose which servlet to invoke?

1029