Forums Register Login

edit and save word and excel documents from browser

+Pie Number of slices to send: Send
Hi!
We have a web site with lots of links to word and excel documents. We want to achieve this: when a user opens one of these documents he must be able to edit and change whatever he wants to, and then save the changes in the document(in the server).
How could we do this?

Thanks a lot for any help given.
[ December 21, 2005: Message edited by: Michael Celaya ]
+Pie Number of slices to send: Send
He/She has to modify it and then upload it back to the server. This is the only solution I know. And no other way I can guess.

About how to upload a file using servlet/JSP, you can check out the Servlet FAQ or JSP FAQ here at Ranch.

Cheers.
+Pie Number of slices to send: Send
If I were building a system whose purpose was to facilitate Microsoft document management, Java wouldn't be my first choice of language. I would look at buying a document management system instead. However if you're committed to building rather than buying, then I believe WEBDAV might be worth looking into. (I don't know much more about it than what it's name means.)
+Pie Number of slices to send: Send
Jakarta Slide is a WEBDAV implementation. I haven't used it but it may help.

Tomcat also ships with a lightweight WEBDAV app.
I haven't used that either but you may want to look into it.
+Pie Number of slices to send: Send
Thanks a lot for your fast replies, if I find some solution in webdav I'll post the results.
Cheers.
+Pie Number of slices to send: Send
Hi, merry chrismas to all, but now back to work.

I tried to do what you told me and I have installed jakarta slide (I think so) with the tomcat server. Using the webdav explorer I have written a html page with a link to a word document, but I still can't save the document. When I try to save the document, my only choice is to save copy as.. (I have tried with the save button in the tool bar, but it doesn't work). I think slide is installed properly, I have the folder in the server, the doc folders too... so I really don't know what happens, maybe is not the solution I was looking for.

Could anybody help me?
Advanced thanks, people here is great!
+Pie Number of slices to send: Send
hi Michael,
we have done something similiar to your task.
We have made use of an applet which downloads the file to a temporary folder, and uploads it back when the user is done with modifying the document. The applet tyhen deletes the temporary file from the client's system.
Note that, here the user is not at all aware that a file has been downloaded and deleted to/from his system.
Hope this might be useful in some way.
Regards,
Naresh
+Pie Number of slices to send: Send
Hi Vasudhaiv!

Thanks for your reply, I was resigned to use a "not ideal solution" using davexplorer, but that isn't the exact solution, the one you propose looks much better, but I'm rather ignorant with applets, I've only worked with ASP and JSP and Servlets in web technology.
Would you mind to tell me how to use the applets, and if you don't care, how you do that with your applet?

Even if you can't, thanks for the information.
+Pie Number of slices to send: Send
I'm not an expert in open office yet but I know you can use it in a browser and communicate with it via an applet. So perhaps using open office you could accomplish this.
+Pie Number of slices to send: Send
Thanks Dave, but I dont't think there is a chance to change from microsoft office to open office just for this site. Maybe I should have explained this before. I'm doing my "end of career project" of informatic technical engineering(speciality on management)-this is in Spain, but I think in US and UK is named in another way- and my work is to fix a little website they have in a local folder and prepare it for the server. My actual task is to make possible the edition and saving at the server from the browser. Oc4j is the server to be used, but if I can't use Vasudhaid's solution with the applet I'll try to convince them using Tomcat, but I think there's no chance to use IIS or make big changes on the organization's structure.

Regards
+Pie Number of slices to send: Send
Hi it's me (again).

I've found an applet in this javaranch page:

This is supposed to write the file to a temporary directory and then open the document in msword. When I tried first the appletviewer started and the applet wrote the file to a local directory, but then displayed Runtime Process error=2.So msword didn't start. I think the file paths were wrong, because I've changed them and doesn't display any message...but even the appletviewer doesn't start. Could anybody explain me what happens? (I'm using jdeveloper 10g and my OS is Windows NT-sad but true-)

Thank you all.
+Pie Number of slices to send: Send
 

Originally posted by Michael Celaya:
Maybe I should have explained this before. I'm doing my "end of career project" of informatic technical engineering(speciality on management)-this is in Spain,......



It's a little off-topic but since you brought it up....
What is an "end of career project" exactly?
The wording makes it sound like the last project you will embark on before retiring but the context makes it sound more like an end of term/work study project.
+Pie Number of slices to send: Send
Sorry, I have to improve my English. It wasn't "end of career project",but "technical degree end project". I've fixed my problem with the applet, but it only opens it from the local system. I have read that the applets have no permission to write in the client's filesystem, but I think that this can be configured somehow, does anybody about this?

Thanks a lot.
+Pie Number of slices to send: Send
Yes, applets have to be especially enabled to access the local file system. There are two ways to do this, signing the applet and changing the local security policy; this page explains them both.
If you have further questions specific to applets, it's better to post a follow-up question in the applets forum, than to let this thread stray further afield.
+Pie Number of slices to send: Send
Thank you, I'll post a new topic in the Applets forum if I'm in trouble...
To get a wish, you need a genie. To get a genie, you need a lamp. To get a lamp, you need a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 3340 times.
Similar Threads
Compatibility
Help required for identifying classes
Looking for web-based generic file viewer software
How to open other windows application through java??
Using jxl apis for prompting user to enter location for excel sheet?
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 19:18:25.