If it is to be "opened" on the client, you cannot do it in JSP (or actually a bean since that sort of thing would need a scriplet and shouldn't be using scriptlets) as the JSP is executed on the server, obviously, and not on the client where the browser is running. It can be uploaded (at the users request), if all you need is some information out of it, and even downloaded again (at the users request), if it is to be edited, but you cannot open a file on the client machine from the server.
Reputation Points: 1471
Solved Threads: 490
Industrious Poster
Offline 4,043 posts
since Feb 2006