• 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 ]
 
my overalls have superpowers - they repel people who think fashion is important. 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!