• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Applet Call coldfusion page to get data

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
doohhh, i meant start working on openStream() to get an InputStream.

thanx again
sean
 
Joe Ess
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
reply
    Bookmark Topic Watch Topic
  • New Topic