944,052 Members | Top Members by Rank

Ad:
  • JSP Discussion Thread
  • Unsolved
  • Views: 6379
  • JSP RSS
Oct 10th, 2007
0

pls help how to open file in a application using jsp

Expand Post »
pls help how to open a file in an application using jsp and it should not open in a browser if possible pls send ur code as soon as possible..
pls help pls help.
Similar Threads
Reputation Points: 1
Solved Threads: 0
Junior Poster in Training
hidash_in is offline Offline
85 posts
since Oct 2007
Oct 10th, 2007
0

Re: pls help how to open file in a application using jsp

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.
Moderator
Reputation Points: 1471
Solved Threads: 490
Industrious Poster
masijade is offline Offline
4,043 posts
since Feb 2006
Oct 11th, 2007
0

Re: pls help how to open file in a application using jsp

pls then how can i do that is there any alternative way to do this.
i want to open a word file in the word application using jsp. when i am clicking the button the word file should open and it should not open in the browser. i am using tomcat server to run the program.
if u have any idea send the code pls pls
Reputation Points: 1
Solved Threads: 0
Junior Poster in Training
hidash_in is offline Offline
85 posts
since Oct 2007
Oct 11th, 2007
0

Re: pls help how to open file in a application using jsp

Once again, if the file is coming from your server, all you can do is set the mime type and stream the data, the browser will decide how to display it. If the file already exists on the client, than you can't do anything with it, whatsoever, in a JSP as it (the JSP) is on the server. You cannot control how the file is displayed. The browser does that.
Last edited by masijade; Oct 11th, 2007 at 7:30 am.
Moderator
Reputation Points: 1471
Solved Threads: 490
Industrious Poster
masijade is offline Offline
4,043 posts
since Feb 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JSP Forum Timeline: Configuring ApacheTomcat
Next Thread in JSP Forum Timeline: JSP and class file help!





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC