aspose file tools*
The moose likes Applets and the fly likes applet to jsp communication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "applet to jsp communication" Watch "applet to jsp communication" New topic
Author

applet to jsp communication

Paramagurusamy Balasubramanian
Ranch Hand

Joined: Aug 17, 2001
Posts: 55
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.
Anubhuti Bhargava
Greenhorn

Joined: May 11, 2001
Posts: 9
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

Joined: Aug 17, 2001
Posts: 55
Thanks anubha..
Best Regards,
Paramaguru
Thiru Thangavelu
Ranch Hand

Joined: Aug 29, 2001
Posts: 219
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?

Thanks,<br />Thiru<br />[SCJP,SCWCD,SCBCD]
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16308
    
  22

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
Senthamizh
Greenhorn

Joined: Nov 16, 2001
Posts: 18
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: applet to jsp communication