File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes how to .properties file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "how to .properties file" Watch "how to .properties file" New topic

how to .properties file

vinodheee kumar

Joined: Apr 26, 2006
Posts: 9
How i can .properties file in servlet
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
If you are having it already then you can get it by using getResourceAsStream() method.
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

This HOWTO lists 2 possible ways to do it:

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: how to .properties file
It's not a secret anymore!