The best way to read properties file i.e.. using ResourceBundle or FileInputStream . if so how to do it , my properties file is n WEB-INF/classes/myprop.properties.It's urgent.
Thanks & Regards,
WEB-INF/classes should be in your classpath. The web container takes care of that.
All you have to do is call ResourceBundle.getBundle("myprop").
It'll append the .properties for you.