| classes and servlets .. oh my i'm trying to determine whether it is 'proper' to create servlets to interact with my jsp page, ... or if classes are just fine.
I'm working on a web interface so customers can access their information online. After several other technologies have either failed or just been too slow, we have decided to use Java.
I'm pretty happy we did, except I'm still trying to figure out the 'proper' way to do things.
Currently I have a couple classes. ( customer, phone, product as400 )
I've read a bit about the MVC concept and here is how I would break the different classes down.
customer and phone are just the data structure, or the ( Model ) and my as400 class is where I process the data. ( Controller ) Then of course the jsp pages are my View.
SOOOOOO.......
what is the proper way to do this? Should I make my as400 class into a servlet?
is it 'proper' the way i have it structured now?
usually the 'proper' way to do things is really open ended, but i seem to be coming across more rules as i read and work more with java.
any insight would be greatly appreciated.
thanks!
__________________ Mike |