• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

sending data from HTML to APPLET

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello everybody,
i'm undergoing a project on CHAT SERVER project. there the user authentication is being done by using a database.
but i am unable to display the USER NAME in the CHAT APPLET.
can somebody help me out?

------------------
 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
sumanta,
You should use the <PARAM> tags nested within the <APPLET> tags on your HTML page returned to pass the parameters (i'm assuming that you're using a JSP/Servlet to return HTML to the client with the APPLET embedded on the page??). To use the PARAM tags you just specify a parameter NAME and VALUE.
From your applet you can get access to the parameter values using the java.applet.Applet.getParameter(String) method to retrieve the string VALUE's by NAME.
Akanimo.
 
My, my, aren't you a big fella. Here, have a tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic