You could always just do it the easy way and generate a page with just a form and the 
form data filled in then put a javascript at the bottom of the page that submits the 
form.  The user doesn't notice and it's simple.

Travis

---- Original Message ----
From: Mark Phelps <[EMAIL PROTECTED]>
Sent: 2001-10-09 11:16:07.0
To: JRun-Talk <[EMAIL PROTECTED]>
Subject: RE: Way to post form data without a form?

Try using the HttpURLConnection class in the java.net package.  Before
opening a connection you need to call the setRequestMethod() function and
set the method to POST.

-----Original Message-----
From: Susan M. Orndorff [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 08, 2001 12:32 PM
To: JRun-Talk
Subject: Way to post form data without a form?


I am using an applet to call a servlet named OrderPage which returns an html
page.  To do this I am using

URL newUrl = new
URL("https://hostname.com/store/OrderPage?Item=teaCustomer=Nancy";)
getAppletContext().showDocument(newUrl, "_self");

When I do this, the parameter string (?Item=teaCustomer=Nancy)  shows in the
address window.  I do not want these parameters to show.  I have been told
there is a way to post data like a form would, but without using a form,
that is, to do it automatically from within the program, without ANY user
interaction.   Does anyone know how this is done?   Thanks for any help...
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=sts

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to