adam d

Greenhorn
+ Follow
since Nov 07, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by adam d

hi,
please could you give me your thoughts. im attempting to open an object output stream to a servlet from a japplet but the japplet does not call the servlet. i used exactly the same code in an applet and it worked fine. i can also open a stream from the servlet to the japplet just not vice versa.
this is the code
try{
URL url = new URL(LOG_SERVLET);
URLConnection conn = url.openConnection();
conn.setUseCaches (false);
conn.setDefaultUseCaches(false);
conn.setDoOutput(true);
conn.setRequestProperty ("Content-Type", "application/octet-stream");
ObjectOutputStream oos = new ObjectOutputStream(conn.getOutputStream());
oos.writeObject(anObject);
oos.writeObject(anOtherObject);

oos.flush();
oos.close();
} catch(MalformedURLException mue) {
System.out.println(mue);
} catch(IOException ioe) {
System.out.println(ioe);
}
the code executes without throwing any errors but doesn't call the servlet. any ideas would be appricated.
adam
22 years ago