HFX Forum

Programming => Other Languages => Topic started by: benthehutt on September 11, 2006, 04:58:21 PM

Title: Java
Post by: benthehutt on September 11, 2006, 04:58:21 PM
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.
Title: Re:Java
Post by: Cobra on September 12, 2006, 11:01:58 AM
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..
Title: Re:Java
Post by: benthehutt on September 12, 2006, 11:12:03 AM
Database connection strings--from where?  I mean, where would these strings be defined?
Title: Re:Java
Post by: Cobra on September 13, 2006, 04:45:53 AM
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.