Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet - PHP communication

 
Vasudhaiv Naresh
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai

How to communication applet - php and vice versa??

plz give some links for that or tutorials
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Some classes to look at on the applet side are URL (particularly its getContent method) for simple access, and URLConnection and HttpURLConnection if you need more control over the connection.

It doesn't matter which technology the server side is implemented in.
[ December 12, 2005: Message edited by: Ulf Dittmer ]
 
Vasudhaiv Naresh
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry I did't get you, i need the sample code which communicate
applet to php and vice versa.
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the simplest case in could be something like this:

If you know that the response is a web page, you can cast the contents to a String.

You will not be able to call applets from a PHP page.
 
Dan Kim
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Vasudhaiv Naresh:
Sorry I did't get you, i need the sample code which communicate
applet to php and vice versa.


Try this. It's a applet-to-servlet example, but you may be able to get the jist of it to apply it to PHP environment. Hope this helps.

http://www.frank-buss.de/echoservlet/
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic