I am using intializaton parameters in web.xml to make connection to database.
In HelloWorldServlet I do the following
Now i have made another servlet say AccountServlet which uses the same initialization parameters. Do i need to specify the same paramters within init-param in the AccountServlet entry in web.xml or is there a way to use the parameters i defined in HelloWorldServlet.
In HelloWorldServlet I do the following
Now i have made another servlet say AccountServlet which uses the same initialization parameters. Do i need to specify the same paramters within init-param in the AccountServlet entry in web.xml or is there a way to use the parameters i defined in HelloWorldServlet.