• Post Reply Bookmark Topic Watch Topic
  • New Topic

Applet - JSP Communication

 
Claude Nichols
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I have an applet that calls a browser page using URL connection. It works well enough to send parameters to cgi-based
sites like yahoo, hotbot etc, search engines.
I however want the jsp page to accept parameters that I send from the applet so that the JSP can handle and perform a service depending on the parameter(s) sent.
A working example would be sending seach parameters to a search engine from the applet.

The same technology works for cgi so how does it work in Jsp
or does it lack that capabilities.

thanks in advance
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It works exactly the same for JSP of course. You can get the paramters from the request.
Bill
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A servlet would probably be better than a JSP for this -- however, it seems like you're really wondering about how you would code the applet since you're talking about it working with other sites...
Anyway, Jason Hunter's book has an example of applet-servlet communication. Check there.
Kyle
------------------
Kyle Brown,
Author of Enterprise Java (tm) Programming with IBM Websphere
See my homepage at http://members.aol.com/kgb1001001 for other WebSphere information.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!