Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

init() question

 
Norm Mattson
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ranchers,
In my servlet I have the following code:
public void init()
{
System.out.println(getServletName() + " : init() called");
// more code
}
I expected the output to be printed to the Tomcat console, however nothing prints.
I have the same line in my service(), doGet() and doPost() methods and they do print to the console.
Can someone explain this?
Thanks
 
Nate Johnson
Ranch Hand
Posts: 301
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Norm Mattson:
I expected the output to be printed to the Tomcat console, however nothing prints.
I have the same line in my service(), doGet() and doPost() methods and they do print to the console.

My guess is that it is going to a stdout.txt file, or something similar to that. That is what would happen in our WebSphere environments anyway.
[ June 14, 2003: Message edited by: Nate Johnson ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic