aspose file tools*
The moose likes Applets and the fly likes Applet Call coldfusion page to get data Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Applet Call coldfusion page to get data" Watch "Applet Call coldfusion page to get data" New topic
Author

Applet Call coldfusion page to get data

Sean OShea
Greenhorn

Joined: Aug 31, 2004
Posts: 5
hello all,
i am going to start working on an applet that i will embed in a webpage running off of a coldfusion server.

my question is, am i able to make an applet that will call a coldfusion page to get the data and populate the applet. it would dynamically refresh the applet every minute or so without refreshing the whole web page.

any ideas or suggestions??

thanx for any comments!
sean


Sean
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8872
    
    8

It is trivial to read an internet resouce with Java. Create an instance of java.net.URL and either invoke getContent() to download the resource or use openStream() to get an InputStream and read the resouce in yourself. Be aware that there are security restrictions on applets. Among them are that an applet cannot contact any server other than the one it was downloaded from.
[ February 11, 2005: Message edited by: Joe Ess ]

"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Sean OShea
Greenhorn

Joined: Aug 31, 2004
Posts: 5
thanx much for the information!

i didn't know that an applet can on communicate with the server it was downloaded from. luckily enough that will be the cf server. just trying to leverage the java capabilities associated with the cfmx since there is no funding for a java server yet.

will get started on the getOutPutStream()

sean
Sean OShea
Greenhorn

Joined: Aug 31, 2004
Posts: 5
doohhh, i meant start working on openStream() to get an InputStream.

thanx again
sean
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8872
    
    8

Originally posted by Sean OShea:
doohhh, i meant start working on openStream() to get an InputStream.


You can edit your posts. Click on the icon that looks like a pencil and paper to the right of the date on your post. Good luck!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Applet Call coldfusion page to get data