Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

applet to servlet

 
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.
 
Ranch Hand
Posts: 147
Python Ruby Java
  • 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).]
 
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
 
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic