In my file system I have the following structure to hold my compiled
class files::
1.0 View (top level directory)
1.1 DEFAULT (sub level 1)
view1.class
view2.class
view3.class
1.2 ACCOUNTS (sub level 1)
view1.class
1.3 ENGINEERING (sub level 1)
view1.class
view2.class
etc.
When a user from ENGINEERING requires view1.class to be loaded, the
class file from the ENGINEERING sub directory must be loaded. If he
requires view3.class to be loaded, the class file from DEFAULT sub
directory must be loaded as there is no corresponding file in the
ENGINEERING sub directory.
How do I do it?
Do I use ClassLoader or ResourceBundle class. How do I guarantee that
the directory look up is always in this order
view.ENGINEERING .classfile (if ClassNotFound then look in)
view.DEFAULT.classFile
I could place all the files in DEFAULT directory under the View
directory and do away with the DEFAULT directory altogether if that
helps.
Please help.
Vyas Vemu
===========================================================================
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