• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Applet that writes to Cold Fusion script

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi there,
I am currently trying to write a java applet that will pass user input data from the client machine to a Cold Fusion application running on a server machine (obviously this will be the applets' originating server). So, I will need to write socket operations using java.net package.
What I would like to know is, does anyone have experience with this kind of problem, and if so, can you refer me to any online resources that deal with it specifically? I am also interested to know how the data would be presented to the scripts - I imagine this is fairly generic issue when passing a data object to scripts of any type (eg. asp).
Thankyou for your help
Alan Watts
 
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you considered using CGI variables?
 
Alan Watts
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Paul,
I did take a bit of a look at a Sun tutorial on the following site:
http://java.sun.com/docs/books/tutorial/networking/urls/readingWriting.html
I kind of hoped there was something more specific to my area out there. I suppose the principal is similar, but like most Greenhorns here, I look for detail first, then deeper understanding can follow wtih time.
Cheers
Alan
 
Paul Bailey
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Alan,
Too much data for CGI?
Well, what about an applet that comunicates with a application running on the server, where the server application outputs a .cfm file?
What exactly are you looking to do?
 
Alan Watts
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paul,
That sounds a bit like what I am after. Just a question of the how. In answer to your question on cgi scripts, no I am sure it wouldn't be too much data, but I have no experience using cgi. An example of exactly what I am trying to do (amongst other things) is use a client applet to write to a .txt file on the server generated by a Cold Fusion application. Now, I appreciate I won't be able to do this directly, because of the applet security model, so instead I need to pass the data object to an application on the server using socket operations. I suppose I should bite the bullet and use cgi, but I was rather hoping there might be a way of directly presenting the data object to the Cold Fusion application, and then it would in turn print to the .txt file. I suppose this is a rather unusual way of attacking the problem, and I shouldn't expect to find similar examples out there?
Thanks Again
Alan
>Well, what about an applet that comunicates with a application >running on the server, where the server application outputs >a .cfm file?

 
Paul Bailey
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that what you want is a servlet. Perhaps you should rewrite your question in that forum.
I don't think that you will be able to use cold fusion to do what you want to do (with out jrun). But i don't really know about servlets.
Good luck.
Oh, CGI variables are those after the ? in URL like blah.cfm?action=do_something
fixed in response to next post

[This message has been edited by Paul Bailey (edited May 18, 2001).]
 
Alan Watts
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Thankyou Paul for your help.
I'll assume you are talking about Servlets here (forgive my pedanticism).
Cheers
Alan
 
No prison can hold Chairface Chippendale. And on a totally different topic ... my stuff:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic