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

Please help: applet and servlet comunicattion

 
Joao Cunha
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks!

I have a problem and I don't know how to solve it!

I'm in a applet and I have to invoke an action in a servlet.
But, to execute this action, I need some info from the client.

I could transfer it by the URL calling the showDocument() of AppletContext. But appears that it doesn't accept more than 255 characters on the URL. If it has more, notthing happens when I call it.

So I thought use RMI connection or socket... but I'm not sure!

It has another better solution?
Thanks!
Joao Cunha
 
Joe Ess
Bartender
Posts: 9338
10
Linux Mac OS X Windows
 
Shashank Agarwal
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, what Joe has said is right, use a URLConnection, here's an example :
The applet looks something like this -



while your servlet would look something like this -



Simple, huh?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic