Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
03-18-2008, 06:54 PM #1
- Join Date
- Sep 2006
- Thanked 0 Times in 0 Posts
post and redirect from within an applet
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();
PrintWriter pw = new PrintWriter(uc.getOutputStream());
But how am I supposed to send my parameter AND at the same time pass the browser control to that jsp???