March 27, 2023, 10:51:54 PM

Author Topic: Java  (Read 16033 times)

0 Members and 1 Guest are viewing this topic.

Offline benthehutt

  • Global Moderator
  • Seasoned Poster
  • *****
  • Posts: 368
  • Country:
  • "Drugs? You'd better not be!" - my mom
    • Echelon9
Java
« 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.
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.

Offline Cobra

  • cool?
  • Administrator
  • Seasoned Poster
  • *****
  • Posts: 447
  • Country:
  • Gender: Male
  • My mom says im cool!
Re:Java
« Reply #1 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..
I am not suffering with insanity... I am loving every minute of it.

Offline benthehutt

  • Global Moderator
  • Seasoned Poster
  • *****
  • Posts: 368
  • Country:
  • "Drugs? You'd better not be!" - my mom
    • Echelon9
Re:Java
« Reply #2 on: September 12, 2006, 11:12:03 AM »
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.

Offline Cobra

  • cool?
  • Administrator
  • Seasoned Poster
  • *****
  • Posts: 447
  • Country:
  • Gender: Male
  • My mom says im cool!
Re:Java
« Reply #3 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.

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