Skip to Content

Properties Files in Web Dynpro Applications: How to use the WDConfiguration API

Motivation: You want to use property files to store alterable settings of your Web Dynpro application.

1. Create your properties file in your Web Dynpro application: create a *.properties file in your Web Dynpro Application: (in Web Dynpro Perspective -> Navigator: path: src -> configuration -> filename.properties; e.g. mailserver.properties):

image

Sample “mailserver.properties”:

image

2. Read the configuration data via WDConfiguration API. To read the data from the properties file you have to use the WDConfiguration API. Code Sample:

image image

2 Comments
You must be Logged on to comment or reply to a post.
  • During the migration process problems have been reported for this blog. The blog content may look corrupt due to not supported HTML code on this platform. Please adjust the blog content manually before moving it to an official community.