For submitting data to be processed by the server (as if submitting a form)
you can post to another jsp or servlet. You can use either 1)URLConnection
to open a connection and then setDoOutput(true) which tells the connection
you want to send output rather than just read an inputstream as usual, and
then send your URLencoded data to the outputstream .... or 2) use sockets to
make a POST request. The first is far simpler...and there is a neat tutorial
for POSTing via JAVA at
http://www.javaworld.com/javaworld/javatips/jw-javatip34.html. The article
deals with an applet posting to the server, but you can easily modify for
JSP to server (ie another JSP or servlet).
good luck
-----Original Message-----
From: Matthew L. Wright [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 19, 2001 4:25 AM
To: JRun-Talk
Subject: Submit question
Is there a way to submit data to a page from within JSP code not using any
HTML elements? I need this for security reasons so users do not know the
site I am submitting too. At least at a superficial level.
Thanks for now!
Matt
Matthew L. Wright
Java Internet Programmer
Jupiter One
Web World Studios West Coast
www.jupiterone.com
(818) 763-2927
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists