How to ?applet URLConnection ?to the same HttpServlet session.
Hi my applet needs to upload some data to be appended to previous uploads every few minutes.
I tried with
session = request.getSession (true);
sessionId = session.getId ()
pass sessionId to applet and
On the applet side
URL url = new URL (serverURL +"?JSESSIONID="+sessionId);
or
URL url = new URL (serverURL +?sessionId);
It is not working
Any help is appreciated.
[434 byte] By [
jahansoza] at [2007-11-27 8:53:56]

# 2
Hi tolmank,
I tried
URL url = new URL (serverURL +":JSESSIONID="+sessionId);
I get
java.io.FileNotFoundException: http://localhost:8084/RACServer12/RACServlet:JSESSIONID=534E1D0B183BC12CEB36EBB8371720CF
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1131)
at client.UpLoadThread$1.run(UpLoadThread.java:76)
at java.lang.Thread.run(Thread.java:595)
Can抰 find the session
Then I tried
URL url = new URL (serverURL +";JSESSIONID="+sessionId);
Can抰 find the session
Then I tried
Applet side.
con.setRequestProperty("Cookie", sessionId);
Can抰 find the session.
Any help is appreciated.