I am calling a java file (servlet) from my JSP... I need to load a configuration file on the servlet call.. How can I do it ??
I tried using new AppProperties(name,filename) , but the file does not load. I am using hibernate and mysql. Every time my servlet is being called it throws invalid URL exception for the above line..
To take the configuration filename declaratively .you can set the name of the file as servlet init params. And then load the file from the location to a properties object.