wood burning stoves 2.0*
The moose likes Servlets and the fly likes can HTML page be displayed using servlet in app-serv communication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "can HTML page be displayed using servlet in app-serv communication" Watch "can HTML page be displayed using servlet in app-serv communication" New topic
Author

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

anirudh takkallapally
Greenhorn

Joined: Sep 04, 2003
Posts: 14
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..
Sanjeev Kaushik
Ranch Hand

Joined: Aug 01, 2002
Posts: 105
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


Sanjeev Kaushik
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: can HTML page be displayed using servlet in app-serv communication
 
Similar Threads
using servlet to create a html page with embedded Image
"Java Applet Window" warning shows with signed applet when called from JavaScript
Displaying Graphics in browser
submit html for via applet
creating image