• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

can HTML page be displayed using servlet in app-serv communication

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi ,
i am sending a few varibles form an applet to a servlet , here the servlet has to invoke a process and supply these varibles to that process , this process generates graph its GIF image , i have to display this image ,i have to dispaly the image in a new window not in the one with the applet .Can i just generate a HTML file using the servlet and insert the image in the HTML file or do i have to send the image back to the applet which started the servlet so that the graph can be displayed if so how do i put the image in a new window???
please help..
 
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This can be done with the java-javascript communication using JSObject.
Here is the link which will give the api documentation of this object
http://wp.netscape.com/eng/mozilla/3.0/handbook/plugins/doc/netscape.javascript.JSObject.html
From the applet you can call a javascript function and in that function you
can open a new window with the URL of the html that is created by Servlet.
Hope this can help you.
Sanjeev
 
reply
    Bookmark Topic Watch Topic
  • New Topic