• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet Call coldfusion page to get data

 
Sean OShea
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Joe Ess
Bartender
Posts: 9280
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Sean OShea
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
doohhh, i meant start working on openStream() to get an InputStream.

thanx again
sean
 
Joe Ess
Bartender
Posts: 9280
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic