File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes opening a file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "opening a file" Watch "opening a file" New topic

opening a file

Krishna Srinivasan
Ranch Hand

Joined: Jul 28, 2003
Posts: 1850

i want to display a report in word format or pdf can i open that files and display.that pdf shold be in differnet window not inside browser.
Advance Thanx.

Krishna Srinivasan
OCAJP 7/8 Exam, 400+ OCPJP Mock Questions
Andres Gonzalez
Ranch Hand

Joined: Nov 27, 2001
Posts: 1561
If this is a silly answer is because I didn't understand your question. Can't you just create an hyperlink with an target="_blank"?
that will open a new window, and since it is a file, a default program will open your pdf/word.
If you have to generate your reports in different formats, then have a look at XML FO.

I'm not going to be a Rock Star. I'm going to be a LEGEND! --Freddie Mercury
I agree. Here's the link:
subject: opening a file
jQuery in Action, 3rd edition