Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

applet to jsp communication

 
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
can any one tell me how to do applet to jsp communication?.I've already done applet to servlet communication..It is working fine.
i.e.Write the object into servlet by using URLConnetion and ObjectOutputStream..I could read the object from the server in my applet too.
I've followed the same step in jsp too.But its giving FileNotFoundException error while reading the object from server.
Suggestions highly appreciated..
Thanks,
Best Regards,
Paramaguru.
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello ,
I am also trying the same , my servlet and applet connect works,
and for doing jsp , applet communication , i am taking help of javascript i.e
ONclick
go to function of javascript :
eg ..
parent.frApplet.frmAppletView.AppletCertificates.goToServletToStore();
where
parent ==> parent frame
frApplet ==> frame name containing applet
frmAppletView ==> form name containing applet tag
AppletCertificates ==> applet Id
goToServletTosave ==> function in applet class file
hope this helps..
regards
anubha

Originally posted by Parama guru:
Hi all,
can any one tell me how to do applet to jsp communication?.I've already done applet to servlet communication..It is working fine.
i.e.Write the object into servlet by using URLConnetion and ObjectOutputStream..I could read the object from the server in my applet too.
I've followed the same step in jsp too.But its giving FileNotFoundException error while reading the object from server.
Suggestions highly appreciated..
Thanks,
Best Regards,
Paramaguru.


 
Paramagurusamy Balasubramanian
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks anubha..
Best Regards,
Paramaguru
 
Ranch Hand
Posts: 219
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have only one frame in which I have a calendar applet and I want to call one method(getTextField()) from applet which my jsp needs to access. Can you suggest me how to do this?
 
Saloon Keeper
Posts: 22279
151
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's no way I know of for the applet to even KNOW whether the server was using a servlet, a JSP, or even a Perl script - much less care. The applet sends a URL or a URL and a data stream (POST), and the server sends a response. If you're getting back a "404", then your URL for the JSP is wrong and it should fail even if you typed that same URL manually into a web browser.
 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Applet to JSP Communication is same as Tunneling in servlet.Go and see this page, u can get more details. To send parameters to the JSP.
Create URL
URL url= new URL("your url");
To send the parametes to JSP. create Patameters using Properties class and send the values as quesry string or POST data.
Go and see this URL. REPLY ME
http://java.sun.com/docs/books/tutorial/networking/urls/readingWriting.html
    Bookmark Topic Watch Topic
  • New Topic