• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

System.out.println("starting loop"); in jsp page

 
pradeep singh
Ranch Hand
Posts: 339
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I want to ask If we include the below code in our jsp page then where this line [System.out.println("starting loop");]print the string "starting loop".In browser window does not show the output of this line .Then where goes this output.



<% int i = 0, s = 0;
System.out.println("starting loop");
for(; i< 10; i++) { s+=i;out.println("hi"); } %>
 
Pedro Erencia
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
System.out goes to the standard output. If you run tomcat from a shell you'll get that line there.
 
pradeep singh
Ranch Hand
Posts: 339
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But there is no new command prompt window open for it when i use NetBean
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Select Window>Output in the Netbeans menu.
 
Dan Walin
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
fyi - we use Websphere and System.out.println's appear in the JVM logs.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic