File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Writing files on server with Applet

 
Vincent Oh
Ranch Hand
Posts: 33
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

I know that there are security issues with writing files directly to the web server using Applets. However, it seems that it is possible to send a request to the server to tell the server to write the file on its own.

Does anyone have experience in doing such? I need some help.

Main idea of what I need to do is:

1) My applet allow users to create some diagrams and save it to the server.

Can I use servlets to handle the request sent by Applet? If yes, how do I go about doing it. If no, any other ways to do it?

Thanks in advance =D
 
Tarun Bolla
Ranch Hand
Posts: 89
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes you can use servlets to handle such things. Just upload the content using HTTP POST by using URLConnection
Go through this http://docs.oracle.com/javase/tutorial/networking/urls/readingWriting.html
An on the server side, write a Servlet to handle the data
 
Luis Martins
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See this: www.zehon.com
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic