It's not a secret anymore!*
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: can HTML page be displayed using servlet in app-serv communication