Hello all!

I need to post one typical name/value parameter to a jsp, from within an applet. But I also want to be redirected to that jsp. Can this be done???

So far I have done this by passing the parameter in the url (which is a get method) using :

this.getApplet().getAppletContext().showDocument(n ew URL(http://...myJSP.jsp?id=5))


I also tried to do this by opening a connection to the jsp:


URL ur = new URL(http://...myJSP.jsp);
URLConnection uc = ur.openConnection();
uc.setDoOutput(true);
uc.setRequestProperty("Content-Type","application/x-www-form-urlencoded");
PrintWriter pw = new PrintWriter(uc.getOutputStream());
pw.println(send);
pw.close();

But how am I supposed to send my parameter AND at the same time pass the browser control to that jsp???