Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

To Read the contents of the properties file which is located in webserver


I have one requirement where I have to read the contents of a property file which is located in some path in server. Say for example, when you click on link abcd then contents of file should be displayed in one text view in webdynpro . I am trying to implement this in webdynpro for java. The main thing is like I am not able to retrieve the server path of the file and hence not getting the file contents. I tried using methods like getApplicationPath() or getRealPath() but its not working. So can you guys please help me on to how to read the server file contents.

Thanks and regards,


Not what you were looking for? View more on this topic or Ask a question