This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

applet to servlet

 
ray bond
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello there ,
I have an applet , this applet does some downloading of content work at end user side , applet has to download 3 to 4 contents from server , when it successfully download all the content at
end user I want to have report of applets execution activity at
end user side , so this applet will pass notification in string format to given servlet and then that servlet will take this string which has been passed by applet and then servlet writes in file on server's disk , so this is how I can keep track of every time applet is executed successfully or not at end user ,
currently my applet is downloading contents very nice , but
how this applet can pass string to servlet , and how can servlet
capture this string , I know how to write to a file on local disk, it would be very nice of you if you can tell me how to pass string from applet to servlet ,
thank you in advance.
 
Glen Tanner
Ranch Hand
Posts: 147
Java Python Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Sept 98 issue of Java Developer's Journal has an article about this. http://www.j-nine.com/pubs/applet2servlet/index.htm
Also, check out the Jason Hunter Servlet Book chapter 10 (I think) http://www.amazon.com/exec/obidos/ASIN/156592391X/electricporkchop/107-9077255-3234942
[This message has been edited by Glen Tanner (edited January 03, 2001).]
 
Sagar Surana
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
for passing value to servlet from applet
u need to form URL connection with the servlet using URL class
at the servlet side u can collect the data using getParameter... method

------------------
Sagar Surana
optimist
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic