Read file from server ?
I have a requirement where I need to read some CSV files from the server and then format it and pass it as output. How can we read the file from the server as in Upload UI only client side upload is possible .
Also I need to maintain config file kind of thing from where the details abt the location will be read and then files will be read from this particular location?
Jawed Macknojia replied
In the web dynpro perspective switch to navigation tab and under your project hirarchy put your logon.properties file on following location:
Hopefully it will load your properties files.
Now reading XML files, I have given you the basic file reading code. There are many other classes you can use for reading files line by line etc. Even you could use XML parsing API(already available in Portal) for parsing XML files.