Click to See Complete Forum and Search --> : applet-servlet


parsh
February 27th, 2001, 07:11 AM
Hi,
Iam having a peculiar problem. I am using Applets and servlets to communicate over http using url/urlconnection classes.
I was using JDK1.2.2's plugin and JRUN 2.3 and things where working fine. Now i changed the set up to jdk1.3 and jrun 3.0(servlet engine) and the communication is not happening. The objects sent from applet to servlet reach and the servlet sends the object back to applet which is not recevied. I am using ObjectInputstream and objectoutputstream for communication.
Further i see another peculiarity. If i have my classpath set to the applet's jar file then the applet does not work when i am using to test the applet and servlet in the same machine.
All your help will be greatly appreciated.
Thank you.

:-) Parshwanath

DrewFoglia
March 2nd, 2001, 01:40 PM
Parshwanath,

Not sure what the problem is with your "new" configuration.

The peculiarity you mention is expected. I believe this is part of the security model. Obviously, there are many solutions to this "problem." Easiest of which is not having the jar in your classpath and just reference it in the HTML that is launching your applet. This is how users will be seeing/deploying it, so it's also a closer to the real thing.

Hope this helps,

Drew