wood burning stoves 2.0*
The moose likes Applets and the fly likes How an applet should read all contents of a file through servlet... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "How an applet should read all contents of a file through servlet..." Watch "How an applet should read all contents of a file through servlet..." New topic
Author

How an applet should read all contents of a file through servlet...

Ananth Chellathurai
Ranch Hand

Joined: Nov 21, 2007
Posts: 349

I have an applet which needs contents of a file in the form of byte array or string or an Input stream through a servlet. Can someone help me on how to make a servlet and how to get the values from servlet?

Thanks in Advance.

Ananth


Ananth Chellathurai [Walk on software]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41108
    
  45
The JavaRanch Code Barn has an example applet that shows how to read a file line by line off the server: http://faq.javaranch.com/java/CodeBarnHelloServerFile

Reading a servlet URL requires different parameters to the URL constructor, but is otherwise similar. It's also possible to pass parameters in the URL.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How an applet should read all contents of a file through servlet...
 
Similar Threads
Reading a data file in an applet
applet to servlet
Requests to server
How run aaplet through ant.
applet to servlet