File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 39530
    
  27
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 - updated with new look and Ping home screen widget
 
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
applet to servlet
How run aaplet through ant.