Results 1 to 1 of 1
- 03-18-2008, 05:42 PM #1
Member
- Join Date
- Mar 2008
- Posts
- 6
- Rep Power
- 0
post and redirect from within an applet
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 u = new URL(http://...myJSP.jsp);
URLConnection uc = u.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???
Similar Threads
-
post info to a webpage
By kmp in forum NetworkingReplies: 1Last Post: 03-22-2008, 02:20 AM -
Problem creating a Post script file
By krishnan.1000 in forum New To JavaReplies: 0Last Post: 02-14-2008, 07:15 PM -
redirect page within a java applet
By paul in forum Java AppletsReplies: 1Last Post: 08-07-2007, 05:11 AM -
Post Apocalyptic Hobby Project Needs Programmers
By wolf28 in forum Jobs OfferedReplies: 0Last Post: 07-29-2007, 07:09 PM -
SOAP over HTTP/POST
By sabatier in forum NetBeansReplies: 0Last Post: 07-10-2007, 08:04 AM


LinkBack URL
About LinkBacks

Bookmarks