| 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
|
 |
 |
|
|
subject: can HTML page be displayed using servlet in app-serv communication
|
|
|