• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Ananth Chellathurai
Ranch Hand
Posts: 349
Eclipse IDE Hibernate Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic