Re: Confusion in Classes

2004-09-07 Thread Michael McGrady
Tom Holmes Jr. wrote: Michael, I think you missed the whole point of what I was getting at. Just one more thing, Tom. Not only do I think I said essentially what Jim and Erik said but I said the same thing at a more abstract level. I don't think that you really want a DTO in the classical sen

Re: Confusion in Classes

2004-09-07 Thread Michael McGrady
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

Re: Confusion in Classes

2004-09-07 Thread Tom Holmes Jr.
data transfer to/from UserDTO to/from the database I think I am getting. Thanks for the help, It is much appreciated! Tom Jim Barrows wrote: -Original Message- From: Tom Holmes Jr. [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 07, 2004 4:04 PM To: Struts Users Mail

Re: Confusion in Classes

2004-09-07 Thread Tom Holmes Jr.
Erik, thanks so much for the help. It is very useful I was confused about a couple of the classes, but I think you helped me to figure it out. I know from my first Struts application a Login application, that I needed the LoginForm (to contain the username and password) a LoginAction to

Re: Confusion in Classes

2004-09-07 Thread Tom Holmes Jr.
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 f

Re: Confusion in Classes

2004-09-07 Thread Michael McGrady
Tom Holmes Jr. wrote: I'm still a Struts newbie, but I have some confusion on the amount of classes I need to use in order to create a CRUD application. I said you should not worry about struts when doing this and I will expand below: From what I can see I need a "form bean" in order to capture

Re: Confusion in Classes

2004-09-07 Thread Michael McGrady
Tom Holmes Jr. wrote: I'm still a Struts newbie, but I have some confusion on the amount of classes I need to use in order to create a CRUD application. The confusion, I would suggest is that you are connecting the CRUD application to struts. The application should be entirely decoupled. Stru

Re: Confusion in Classes

2004-09-07 Thread Erik Weber
e) if there is an error, then we should return false to the action class so we can take the action as defined in the struts-config.xml file. You can do this, but I prefer to return String or void and throw Exceptions from the "backend" to the Action class, rather than returning true or false

Re: Confusion in Classes

2004-09-07 Thread Erik Weber
I think you pretty much have it right. But . . . Tom Holmes Jr. wrote: I'm still a Struts newbie, but I have some confusion on the amount of classes I need to use in order to create a CRUD application. From what I can see I need a "form bean" in order to capture the data from the JSP page. This

RE: Confusion in Classes

2004-09-07 Thread Jim Barrows
> -Original Message- > From: Tom Holmes Jr. [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 07, 2004 4:04 PM > To: Struts Users Mailing List > Subject: Confusion in Classes > > > I'm still a Struts newbie, but I have some confusion on the amount o

Confusion in Classes

2004-09-07 Thread Tom Holmes Jr.
I'm still a Struts newbie, but I have some confusion on the amount of classes I need to use in order to create a CRUD application. From what I can see I need a "form bean" in order to capture the data from the JSP page. This contains the validate method which would verify some of the data from