Better practice would be delegating to a "handler" (application layer) class and let it return data in form of some bean and use that in action.
In this way you'll be isolating Controller from Business model.



uma.k wrote:

Hi,
I wanted to insert a record into the database or
update a record in the database or
get a record from the database.

Where do I make my database connection? Is it in the Action class? Can I
make a single java class handle all of that for me?

If the above are wrong. Please let me know which is the best practice to do
this.

Thanks
Uma


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to