On Fri, 8 Feb 2002, Gert Grenander wrote:

> Mark,
>
> You didn't get the point. The point is... If you do not understand
> what the person is asking about, ask for more details. Your second
> option is to not answer the question. And as for the "hacker
> ethics"... that's something that was "cool" when you were a
> teenager.

I think it's you that are not getting the point.  For one thing,
Christopher's response can be taken as asking for more details -- he
said he wasn't understanding what you were saying, and
clarifying/elaborating is one possible response to that.  (In fact, he
ended his post by saying "It might help if you could be a little more
specific about exactly what you're trying to do...".)

Further, a lot of people of people will choose your second option and
not respond.  Which is probably not what you would prefer.  That's why
there are other options, like giving pointers to general servlet
resources that might be useful, or giving tips on how to better ask
questions, both of which occurred in this thread ("Teach a man to
fish, ...".)


> Kevin's answer would have been enough. Where did you think I got the
> solution to the problem? By researching more on ServletContext of
> course.

Frankly, ServletContext is a pretty basic part of servlets, and I'm a
little surprised you didn't come across it in your "more than ten
hours" of searching.  I'm guessing you did a somewhat haphazard
search, and didn't really go more thoroughly/directly through some
servlet specific resource.  (It's a little unfortunate that you got
stuck on not the most appropriate term, "global" -- "shared" is more
apt, but that's really not here or there.)  Most any decent one will
mention ServletContext pretty quickly.  This is exactly why it was
useful for Christopher to mention a few such resources.

For example, choosing one of them:

http://java.sun.com/products/servlet/technical.html

I see a list of tutorials.  One is called "Servlet Essentials", which
sounds promising, so I go there:

http://www.novocode.com/doc/servlet-essentials/

Now I see a table of contents.  Perusing it, I see a section on
Inter-Servlet Communication:

http://novocode.de/doc/servlet-essentials/chapter3.html#3_1

ServletContext is mentioned right away, and down at the bottom of the
page they have a section on Sharing Data Between Servlets.  Voila!
There's your answer.

Anyway, I think it's time to suck it in and move on.



> ----- Original Message -----
>   From: Galbreath, Mark
>   To: [EMAIL PROTECTED]
>   Sent: Friday, February 08, 2002 6:50 AM
>   Subject: Re: "Global" objects
>
>
>   Kevin's answer was only partially correct.  You still needed to
>   make the variable final or static, and I think someone pointed
>   that out.  Point is, there is always more than one way to do
>   something and if your question is vague, expect vague answers.
>   Again, read it, learn it, live it:
>
>   http://www.tuxedo.org/~esr/faqs/smart-questions.html
>
>
>     -----Original Message-----
>     From: Gert Grenander [mailto:[EMAIL PROTECTED]]
>     Sent: Thursday, February 07, 2002 7:58 PM
>     To: [EMAIL PROTECTED]
>     Subject: Re: "Global" objects
>
>     A short concise answer like the one Kevin [citiz] gave would
>     have done the trick:
>       "you can bind the object to ServletContext."
>     Then I would know what to concentrate my research on .
>

Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]

___________________________________________________________________________
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