[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Maybe a better question




To a certain extent I would agree.  If it is going to be a small site, 
I'm not sure if it'll be worth the effort.

Bill - you might want to take a look at this: http://www.dbforms.org. 
Its a MVC architecture for data driven sites.  I haven't looked at it 
yet, but if I was doing a small data driven site I try this first.

Calvin


Nedim Colic wrote:
> It's called OR Mapping (Object to Relational) and it
> is one of the more interesting/complex CS topics. For
> simple beans it should be easy enough to do
> select/insert/update wrapped inside. Google for "OR
> Mapping".
> 
> For more fun try to make your beans observable
> (java.util.Observable) by persistance class (but try
> not to make it to fine grained or you're end up with a
> lot of db calls), and see how your beans magicaly
> persist to the database :) This is just for fun!
> 
> On the other note, it is usually not recommended to do
> jdbc calls from jsp. It goes against clean separation
> of data and view. For more info google for "MVC
> pattern".
> 
> Nedim.
> 
> --- Bill Woodson <radman@usefulware.com> wrote:
> 
>>Hi again,
>>
>>I am trying to encapsulate the JDBC stuff into a
>>Bean that you set properties and then call methods
>>to return various results and do updates.  Is there
>>a generally excepted way of doing this?  I am going
>>to use the bean in several JSP applications.
>>
>>Thanks,
>>Bill
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Autos - Get free new car price quotes
> http://autos.yahoo.com
>