Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #26672

    I am getting open or save dialog box, when we click open it should open in new window. how to achieve this ?

    #28855

    You can control the behavior via HTTP header:

    [language=java:2wdui3qr]response.setHeader(“Content-Disposition”,”inline; filename=”doc.pdf”;”);[/language:2wdui3qr]
    Forces browser to open PDF inline

    [language=java:2wdui3qr]response.setHeader(“Content-Disposition”,”attachment; filename=”doc.pdf”;”);[/language:2wdui3qr]
    Forces web browser to popup a Save/Open dialog.

    In PD4ML JSP taglib you may control that with inline=”true/false” attribute of tag.

Viewing 2 posts - 1 through 2 (of 2 total)

The forum ‘General questions / FAQ’ is closed to new topics and replies.