Skip to Content
avatar image
Former Member

Download functionality in WebDynpro

Hello,

My WebDynpro application must support download functionality. I have implemented this with the help of FileDownload component. So the user can start Webdynpro application in browser and download some xml files.

But additionally it must be possible to access the download of file directly by URL: for example

....

<i>URL download = new URL(urlToWebDynpro);</i>

// get file

......

Is it possible to do with WebDynpro?

Thanks in advance

With best regards

Belenki Michael

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Aug 11, 2004 at 01:29 PM

    I do not understand your question. What do you mean by "urlToWebDynpro"? Can you give some more info?

    Armin

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 12, 2004 at 08:47 AM

    Hello Michael,

    I can think of no way how you could make your Web Dynpro application act like a servlet and return a file instead of an HTML page containing a UI.

    Inside your Web Dynpro application, you can find out a URL that can be used from outside to download a certain file, even one that is stored in a context attribute. But that would be of limited use because your other Java application on the outside has no good way to learn that URL.

    Thus I agree with Stefan that it sounds more promising to directly program a servlet in this case.

    Best regards,

    Thomas

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello,

      I will implement the download functionality with the help of the servlet.

      Is it rather conventionally to include a servlet into WebDynpro-project?

      Thank you for your help.

      With best regards

      Belenki Mikhail

  • avatar image
    Former Member
    Aug 13, 2004 at 08:25 PM

    But how can i integrate a download-servlet into my WebDynpro project?

    I mean my xml files are included into WebDynpro project.

    with best regards

    Michael

    Add comment
    10|10000 characters needed characters exceeded