T.R.

Jason and I did the same thing .. Actually I think I did it out right just
to avoid having the multiple class registration nightmare from the word go
.. but anyway .. create one class and register it.  This one class contains
methods which return instances to all the other classes of interest.

I wish I could provide you with an example .. other than this one included
(created on the fly) .. but mine working classes are managing security at
the moment.  The other thing that this class does is manage the initial
connection to the database.


Michael J. Fuhrman
Reliable Business Computers
http://www.creliable.com

class BlackBox
 {
   private myStore Store = null.

   public BlackBox () { // ASP can't pass parameters when creating objects
// }

   private Connect (szODBC, UID, IP) { Store = new myStore ( szODBC, UID,
PSW); }
   private DisConnect () { myStore.DisConnect }

   public getArticles () { if (Store !=NULL) return (new htmlArticles
(Store)); }
   public getSolutions () { if (Store !=NULL) return (new htmlSolution
(Store)); }
   public getSupport () { if (Store !=NULL) return (new htmlSupport
(Store)); }
   public getService () { if (Store !=NULL) return (new htmlService
(Store)); }
   public getDownloads () { if (Store !=NULL) return (new htmlDownloads
(Store)); }
 }

// myStore is the class that maintains the link to the database
// contains the UID, IP, and other information for tracking
// and controlling access to the database.  In cases of Intranets ..
// I assume that the UID provided has been validated against
// the system internal security thus I don't have to worry about
// validating a PSW, instead all I have to do is make sure the
// user has access to only what they are supposed to access.

// Store is passed to all the other objects to insure that they use
// the same security structure.  And that when these objects add,
// delete, or modify information, that the IP and UID are stamped into
// every instance of that object, along with the date.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to