Two Laptop Bag
The moose likes JSP and the fly likes Load a configuration file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply locked New topic

Load a configuration file

Saumya Nair
Ranch Hand

Joined: Apr 25, 2006
Posts: 34
Hi All,

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

Please help...

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63858

Please do not cross-post the same question in multiple forums. It wastes people's time when multiple redundant conversations take place.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Load a configuration file
It's not a secret anymore!