Java

Started by benthehutt, September 11, 2006, 04:58:21 PM

Previous topic - Next topic
Anyone know Java?  I need some help.  In particular, with beans.  I've got the following line of code and I need to know what it means:

Bean bean = (Bean)getServletContext().getAttribute(s);

Bean is a bean, obviously, a .class reffered to in this package.  Any help would be awesome.
Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.

Okay .. I know shag all about Java ... But getServletContext().getAttribute(); is used to access Application Scope Data ..

So it could be calling Database connection strings or anything of that sort and defining them.. from what i can gather..
I am not suffering with insanity... I am loving every minute of it.

Database connection strings--from where?  I mean, where would these strings be defined?
Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.

Well like i said .. I don't know java.

But it doesn't mean it is Database strings. That was just an example. It could be any other Global Defined Info or "Application-Scope Data" whatever you want to call it :P

What sort of files that gets stored in with java i don't know. I am guessing if it is like most programming languages.. they get called in as an #include file. So i would check your source where that code snip came from and see if there are any external sources being called.

I am not suffering with insanity... I am loving every minute of it.

SMF spam blocked by CleanTalk