Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

i would like to know how to redirect a console output to textarea

 
chan choon chee
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am doing a program that allow user to run and execute java language in this commandline.jsp, a servlet execute.java , jsp called getconsoleoutput.jsp to direct it to commandline.jsp

however there a compilation errors cos i could only get a line of string, and when i run loop in commandline.jsp it will not have the output. i could only run helloworld in it.
therefore i need code that i can run multiple line in it. i suspect its the print stream error in execute.java



























[added code tags]
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 35762
412
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
chan choon chee wrote:however there a compilation errors cos i could only get a line of string, and when i run loop in commandline.jsp it will not have the output. i could only run helloworld in it.

What is the error message the compiler is giving you?
 
I've got no option but to sell you all for scientific experiments. Or a tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!