not able to post data from applet to jsp
i m not able to send data from an applet(embedded in a jsp) to another jsp even though i got successed making connection between these two.
i m using following code at applet sede(embedded in jsp)...
URL appletURL = getCodeBase();
String strHost = appletURL.getHost();
String strPort = String.valueOf(appletURL.getPort());
String strProtocol = appletURL.getProtocol();
int portNumber = Integer.parseInt(strPort);
String strwp ="/UASProject/faces/feedbackform.jsp";
URL jspURL = new URL(strProtocol,strHost,portNumber,strwp);
URLConnection jspCon = jspURL.openConnection();
jspCon.setUseCaches(false);
jspCon.setDoOutput(true);
jspCon.setDoInput(true);
OutputStream outstream= jspCon.getOutputStream();
ObjectOutputStream oboutStream = new ObjectOutputStream(outstream);
oboutStream.writeObject(std_details);
oboutStream.flush();
// oboutStream.close();
URL tempURL = new URL(String.valueOf(jspURL));
getAppletContext().showDocument(tempURL,"_self");
//from server
InputStream instr = jspCon.getInputStream();
ObjectInputStream inputFromjsp = new ObjectInputStream(instr);
Properties results = (Properties)inputFromjsp.readObject();
inputFromjsp.close();
instr.close();
and this is at server side
ObjectInputStream inputFromjsp = new ObjectInputStream(request.getInputStream());
std_details = (Properties)inputFromjsp.readObject();
//to applet
response.setContentType("application/x-java-serialized-object");
OutputStream outstr = response.getOutputStream();
ObjectOutputStream oos = new ObjectOutputStream(outstr);
oos.writeObject(ce);
oos.flush();
oos.close();
but when i use std_details object for further implementation the i gets
java.lang.NullPointerException
here std_details is an properties object contains few key/value sets
any help would be much appriciated

