Tom Holmes Jr. wrote:
Michael, I think you missed the whole point of what I was getting at. Forgetting about the CRUD application for a minute, maybe I should have said I was creating:
a web-application that takes data from a jsp web-page form, and file that data to the database. I also want to be use jsp web-page forms to retrieve data from the database, maybe update that data and maybe delete data .... hence a web CRUD application.
I don't have any problems writing Connections to the database and executing PrepareStatements to create, retrieve, update, and delete ... that's not a problem ... but within Struts ... this data transfer to/from the database looks like it takes place with the "helper" bean (DTO bean maybe).
So ... it looks like I will ALWAYS need the "form bean" for the form data, and the Action/Servlet ... but what got me was that the form bean and the DTO look sooooo similiar, but Erik Weber explained that the "form bean" was going to have all strings from the jsp form, and the DTO bean will have the real int's, Strings, booleans, etc.
Anyway, thanks for the help.
Tom
No worries, Tom. When I think of DAOs and CRUD I think of the database related methods such as read(..), delete(...), etc. When I think of DTOs and forms and VOs, I think of getters and setters. So, in a real way, I think I was saying the same thing that you eventually adopted, viz. a further decoupling from both the CRUD and the ActionForm. The important thing is that you got futher along on your path. Good show!
Michael
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]