• How do I download a file with struts2 with a dialog?

    From e.d.programmer@gmail.com@21:1/5 to All on Fri Sep 1 08:23:44 2023
    I've tried everything I can think of here. In my struts.xml file I have <result="success" type="stream"> specifying param for contentType, inputName, contentDisposition, contentLength, and bufferSize.
    I'm downloading using struts, with a class extending ActionSupport, sending file contents from a method called getFileStream which returns InputStream. I've tried every value I can think of for these params and it's downloading files to my downloads
    If I display a PDF using iFrame, there's a download icon. If I click that, I get a "Save As" popup window. How do I get my download link to popup that window?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)