aspose file tools*
The moose likes JSP and the fly likes How to make sure the open/save dialog opens a new application instance ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "How to make sure the open/save dialog opens a new application instance ?" Watch "How to make sure the open/save dialog opens a new application instance ?" New topic
Author

How to make sure the open/save dialog opens a new application instance ?

Tina Desai
Ranch Hand

Joined: Mar 13, 2003
Posts: 365
We have implemented download on link click that gives the standard Open/Save dialog.
Now what we want is if user clicks open, a new application instance should be launched.

Like - if the acrobat reader is alreay opened,the download link is clicked, a new instance should be launched and used. Is it possible?

Regards,
Tina


Alongwith being a good coder, try to be a good professional as well!
Natasza Biecek
Greenhorn

Joined: Oct 26, 2006
Posts: 28
Hi Tina,
(...)new instance should be launched and used.

hmm...as I understand a new instance of Acrobat Reader?

so, try to prepare a link to your doc in this way:
<a href="any_doc.pdf" target="_blank">a document</a>
it will open a new instance of browser window (with AR inside)
on every click...

regards,
Natasza
Tina Desai
Ranch Hand

Joined: Mar 13, 2003
Posts: 365
Thank you for your response.

I am giving the content-disposition as the following:
response.setHeader("Content-Disposition", "attachment; filename="+strFileName);

This means, I am prompting the user for open/save dialog.
On this open, I want to launch a new Acrobat instance and not use the existing one.

I do not have and want the following:


This will open the document inline i.e in the browser window as you were suggesting.

Regards,
Tina
Tina Desai
Ranch Hand

Joined: Mar 13, 2003
Posts: 365
Anyone?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42926
    
  68
That's outside of the realm of HTTP and HTML, and up to the operating system. E.g., on Mac OS X, you'll never get a second instance if one is running already.

Why does it matter whether a new app instance is opened?
Satish Kumar
Ranch Hand

Joined: Oct 16, 2006
Posts: 85
Hi Tina, I am having the same problem as the one you have implemented. I want to get the pdf from the database and display it in the browser on clicking the link. Can you please send me that code that prompts the user for the open/save dialog. If it involves some handling in the action please explain that also..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to make sure the open/save dialog opens a new application instance ?