• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

How to communicate Servlet to applet

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually i need insert an applet into Servlet.
i.e when i brose for servle along with that an applet will be open in center of the servlet page.
 
Rancher
Posts: 43016
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please don't post the same question to multiple forums. I closed the duplicate one in the Applets forum.

If I understand correctly, then you need an HTML page that's generated by a servlet, and which contains an applet? What exactly is the problem - getting a servlet to generate an HTML page or having that HTML page contain an applet? If the latter, then the AppletsFaq has some links for further information.
 
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Ramgopal Reddy:
Actually i need insert an applet into Servlet.
i.e when i brose for servle along with that an applet will be open in center of the servlet page.



Servlet is something that runs in the server and produces the output for the client and applets are java program that runs in the browser.

I could not get the question.If you want to app a applet in the html that is generated by the servlet, then its simple ..just output the applet code in the generated html from the servlet.

But if your communication is something for communication between client and servlet , then you can even consider AJAX for that.AJAX can communicate from the browser to servlet.
 
Men call me Jim. Women look past me to this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic