Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

I m not able to print out.println on target iframe  RSS feed

 
Vin Shinde
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I m not able to print out.println on target iframe in loop, it get printed after the loop is executed, below is the code
out.println("<pre>" );
for(String s : processesCMD) {
out.println("Executing " + s);
sshOutput.append(excuteCMD(s)); // Unix command running on Unix Box
sshOutput.append(excuteCMD("sleep 1")); // Unix command running on Unix Box
}
out.println("</pre>" );

Regards,
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Several issues with this, but. Is this code in a JSP?!
 
Vin Shinde
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it is a java class called through struts action java class
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'll need to show the rest of the code then.
 
Devaka Cooray
Marshal
Posts: 5565
712
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vin, please UseCodeTags when you post a code.
 
Vin Shinde
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey, I resolved problem using out.flush

Thanks David, Devaka for your help

Regards,
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Glad to hear you worked it out :)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!