can java tell which environment it is running in?

luca <[email protected]> Wed, 19 Jan 2005 06:23:07 +0100
Newsgroups gmane.comp.java.advanced-servlets
Message-ID <[email protected]>
Hallo, is there a way for Java to programmatically detect if
it's running as part of a servlet or if it's a command line application?

any trick will do, even one that uses Exceptions.

Thanks

Luca



Before posting a question, try to find your answer here: 
<http://www.egroups.com/links/advanced-servlets>
Announcements should go to: [email protected]
To Post a message, send it to: [email protected]
To Unsubscribe, send a blank message to: [email protected] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/advanced-servlets/

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/