This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Services and the fly likes Accessing file using relative path Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Accessing file using relative path" Watch "Accessing file using relative path" New topic
Author

Accessing file using relative path

Maya sekar
Ranch Hand

Joined: Sep 22, 2011
Posts: 70
In a REST Web Service I need to access a properties file pasted anywhere inside the project using the relative path of the File. Also the method needs to work fine irrespective of the platform it is deployed in, windows or unix...

thank you
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Accessing file using relative path
 
Similar Threads
encoding UTF-8 in Xml File
JSP and Path related Question
unable to load property file at runtime
context root. accessing directory from browser
plz help me