Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet to Servlet Communication (only two ways?)

 
Ramiro Veramendi
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All the examples that I've seen about Applet to servlet communication is in two ways, I mean it always has to be from the applet to the servlet and from the servlet to the applet.

My problem is that in my project I have to send some data to the Servlet and then the Servlet has to take the controll of everything, it isn't has to return to the applet, instead the Servlet has to make a mapping.findforward to another action....

If what I want to do is possible, please give some ideas about this....
 
Joe Ess
Bartender
Posts: 9312
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ramiro Veramendi:
All the examples that I've seen about Applet to servlet communication is in two ways


That is because the HTTP protocol is a request followed by a response. Either make up your own "POST only" protocol and write your own server or have your servlet return a token message.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic