Skip to Content
author's profile photo Former Member
Former Member

Work with Directory


Ich have a following question:

My WebDynpro-Application works with some xml files, which have to be placed into WebDynpro-Directory. Where can i create a directory for my xml documents? And how can i get a path to this directory in my WebDynpro Application?

With best regards

Michael Belenki

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 26, 2004 at 01:07 PM

    Put your XML file in the resource folder src/mimes/Components/<component> and use


    to get the resource path.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Michael,

      no, it's not a bug, the reason is, how you make the call. Since you concat wdComponentAPI.getDeployableObjectPart() + File.separator + "myfile.xml", you really call WDUrlGenerator.getResourcePath(String), which results in ".\temp\webdynpro\web\<objectName>". <objectName> is the fully qualified name of the deployable object part appended with the file in your call.

      Please use the following instead:

      try {
        String url = WDURLGenerator.getResourcePath(
      } catch (WDAliasResolvingException e) {
          e.getMessage(), true

      Hope that helps.

      Best regards


Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.