The moose likes Applets and the fly likes applet to servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "applet to servlet" Watch "applet to servlet" New topic

applet to servlet

ray bond
Ranch Hand

Joined: Oct 11, 2000
Posts: 111
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

Joined: Apr 16, 1999
Posts: 147

The Sept 98 issue of Java Developer's Journal has an article about this.
Also, check out the Jason Hunter Servlet Book chapter 10 (I think)
[This message has been edited by Glen Tanner (edited January 03, 2001).]
Sagar Surana

Joined: Dec 23, 2000
Posts: 21
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

Sagar Surana<BR>optimist
I agree. Here's the link:
subject: applet to servlet
It's not a secret anymore!