• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

init() question

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 301
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic