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.
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..
Database connection strings--from where? I mean, where would these strings be defined?
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.