Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to communicate Servlet to applet  RSS feed

 
Ramgopal Reddy
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.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • 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.
 
Rahul Bhattacharjee
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.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!