• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to call ActionServlet from applet

 
Mohamed Farouk
Ranch Hand
Posts: 249
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Friends
Do you know how to call a Action Servlet from applet?

I have a action mapping associated with the actionServlet
Please help.

Thanks
Farouk
 
Joe Ess
Bartender
Posts: 9340
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Create a URL which points to the servlet and read the response.
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can access any URL from an applet by using the java.net.URL and URLConnection methods. Note that this only works with URLs on the same server that the applet originates from (applets are not generally allowed to connect to any host - they must be explicitly allowed to do so).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic