Abhimanyu Jain wrote:I have checked the FAQs but it did not work out for me.
I don't know how to compile a package that's why I did not put it in a package.
Abhimanyu Jain wrote:It is throwing an exception as "Unable to process the request. Please try after some time".
Abhimanyu Jain wrote:Yes, single instance of a servlet can service multiple request for that particular servlet. And the init() method is called by the container once the instance of the servlet is created.
I think I am closing the connection to DB that's causing the issue. Am I correct?
Abhimanyu Jain wrote:Thank you!! One last thing, is it good practice to code the database connection in the configuration file and get it using "getServletContext().getInitParameter()" method? Will it be fine instead of creating a DBConnection class?
Abhimanyu Jain wrote:Where do we find the servlet container's configuration file?
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koophttps://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton