Re: return result to php



Rose wrote:
When I call

system('/mnt/hd9/a.out');

the prog sucessfully print a message to web browser. (a.out is an object file compiled from a C file).

But when I change it to java, nothing generates.

It's spelled "Java". When you change what to Java, exactly? How are you invoking this Java code? Surely you are not trying to use it as a CGI program?

Should I change System.out.println to some other functions?

RedGrittyBrick wrote:
No.

Yes!

System.out.println() in a JavaEE web app does not write to the client. In a Java CGI app it would, but that would be a very, very silly architecture.

--
Lew
.



Relevant Pages

  • Re: return result to php
    ... the prog sucessfully print a message to web browser. ... But when I change it to java, ... System.out.printlnin a JavaEE web app does not write to the client. ... In a Java CGI app it would, but that would be a very, very silly architecture. ...
    (comp.lang.java.programmer)
  • Re: return result to php
    ... the prog sucessfully print a message to web browser. ... But when I change it to java, ... In a Java CGI app it would, but that would be a very, very silly architecture. ...
    (comp.lang.java.programmer)
  • Re: Is anything easier to do in java than in lisp?
    ... Java Applets don't usually work. ... truly platform independent web browser would make sense, ... case using the appropriate web browser for each platform the text-mode ... > Common Lisp and it needs a Common Lisp environment to run. ...
    (comp.lang.java)
  • Re: Is anything easier to do in java than in lisp?
    ... Java Applets don't usually work. ... truly platform independent web browser would make sense, ... case using the appropriate web browser for each platform the text-mode ... > Common Lisp and it needs a Common Lisp environment to run. ...
    (comp.lang.lisp)
  • Re: Cells compared to Flow-Based Programming
    ... to make Common Lisp more generally popular. ... a Lisp-based Web browser (or a Lisp-based plug-in for existing Web ... browsers) which supports Lisp applets just the same as how Java ... download link their current Web browser downloads it and installs ...
    (comp.lang.lisp)