Article View: be.comp.programming
Article #17311Re: Java applets die informatie moeten hebben uit een applicatie
From: ~ \/. |>. /=\.~
Date: Tue, 11 Jan 2000 00:00
Date: Tue, 11 Jan 2000 00:00
45 lines
1744 bytes
1744 bytes
Nyssens Frederik wrote:
>
> Weet er iemand hoe ik gegevens kan halen uit een continu werkende
> applicatie via een applet ?
Q: staat die applicatie op de locale computer of op de server?
>
> De applicatie is natuurlijk ook zelf geschreven in Java.
>
Misschien kan je dit gebruiken:
import java.io.*;
Process myProg;
InputStream myInput;
OutputStream myOutput;
try {
myProg =
Runtime.getRuntime().exec("myprog.exe");
myOutput = myProg.getOutputStream();
myInput = myProg.getInputStream()));
} catch(IOException ioe) {
ioe.printStackTrace();
System.err.println(
"Cannot start myProg.exe");
System.exit(1);
}
(heb dit uit Thinking in Java - Hoofdstuk 15 (networking))
> Frederik
> fnyssens@vub.ac.be
> http://student.vub.ac.be/~fnyssens/
<hope this helps>
de groeten,
VdA
--
--------------------------
Hi, I'm a signature virus. plz set me as your signature and help me
spread :)
Technical Details
Message-ID:
<387B7DC4.294E04F2@cryogen.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<85fs4a$eet$2@mach.vub.ac.be>Show Full Headers
Complete Article Headers
X-Google-Language: DUTCH,ASCII-7-bit X-Google-Thread: fcea4,5941e1a5c206c96e X-Google-Attributes: gidfcea4,public From: "~ \\/. |>. /=\\.~" <vda@cryogen.com> Subject: Re: Java applets die informatie moeten hebben uit een applicatie Date: 2000/01/11 Message-ID: <387B7DC4.294E04F2@cryogen.com> X-Deja-AN: 571289961 Content-Transfer-Encoding: 7bit References: <85fs4a$eet$2@mach.vub.ac.be> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@pandora.be X-Trace: afrodite.telenet-ops.be 947617331 213.224.21.46 (Tue, 11 Jan 2000 20:02:11 MET) Organization: geen MIME-Version: 1.0 Reply-To: vda@cryogen.com NNTP-Posting-Date: Tue, 11 Jan 2000 20:02:11 MET Newsgroups: be.comp.programming