There is a Jakarta JSP Taglib that can do a lot of the work for you, see
http://jakarta.apache.org/taglibs/doc/io-doc/index.html (you've got to look
at the JavaDocs to see what it really does, but it has a tag that is VERY
MUCH like CFHTTP)
If you want to code it yourself, you have to use the java.net.URL class to
make a connection (java.net.URLConnection) from which you can getContent()
to get the body of the web page.
-----Original Message-----
From: Scott Mulholland [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 24, 2001 12:25 PM
To: CF-Talk
Subject: OT: jsp - cfhttp equivalent
Machine 1 has a jsp app on it.
Machine 2 is a cf server with the needed datasource on it.
I need to add some code to the jsp app to run a sql insert on machine 2. I
am restricted in setting up a datasource on machine 1 so I figured I could
have the code to do the insert on machine 2 and call it from the app on
machine 1, maybe with a cfhttp type call. Is this possible, if so can
someone point me in the right direction for finding the JSP equivalent of
cfhttp. Hope I explained it clearly, it makes sense in my mind, not sure if
it comes through clear written down :)
Scott
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists