• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
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
Marshal
Posts: 37181
515
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?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!