Try this:
System.out.println(this.getClass().getName());

--- Anson To <[EMAIL PROTECTED]> wrote:
> Hi ya,
>
> Just a very simple question.  How can I retrieve the name of servlet from
> itself?  I have skimmed through the API with the relevant method is
> deprecated.  Wanna use it when printing debugging message.
>
> Many many thanks! Anson
> --
> Sincerely yours, Anson
> From:   [EMAIL PROTECTED] (Robert & Caralle Hicks)
>
>
> __________________________________________________________________
> Get your own FREE, personal Netscape Webmail account today at
> http://webmail.netscape.com/
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year!  http://personal.mail.yahoo.com/

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to