In terms of best practice design patterns for where and how to deal with
business logic and database access, I have found the following two O'Reilly
books to be invaluable:

Programming Jakarta Struts by Chuck Cavaness
Building Java Enterprise Applications, Volume I: Architecture

I'm sure there are lots of others as well.

Ed
----- Original Message -----
From: "Kalra, Ashwani" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, November 24, 2003 9:15 AM
Subject: RE: Some doubts.


> all inline
>
>
> >> Hi all,
> >>     I am starting to learn Struts. On going throgh the
> >documentation I
> >have
> >> some doubts.
> >> 1. Is a form bean is an ActionForm.?
>
> Yes
>
> >> 2. It says that data is stored in JavaBeans. In the
> >presentation layer I
> >> have to display several select boxes whose value is fetched
> >from database
> >> eg. states,postal codes etc.. How to do it in Struts. There are other
> >values
> >> which is to be dispalyed in text boxes which can be get from
> >a JvaBean. I
> >> dont see any other way than putting scriptlet in View. Custom tags or
> >> creating a JavaBean and executing it is another
> >option.(Currently I am
> >using
> >> JavaBean).
>
> I dont know the best practice. But you can you DTO(Data transfer objects
> which u are calling java beans) to gather data from DB and display in jsp
> using tag libraries provided
> by Struts.
>
>
> >> 3. Where the Business Logic is implemented. That is
> >accessing database and
> >> updating data. Is it ok to do it in ActionForm.
>
> No. It should be done in action classes. Ie where you business logic is
> executed.
>
>
>
> >>
> >> Thanks in advance
> >>
> >> Rgds
> >> Antony Paul.
> >>
> >> ---------------------------------------------------------------------
> >> 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]
> >
>
> ____________________________________________________
> This message contains information that may be privileged or confidential
and
> is the property of the Cap Gemini Ernst & Young Group. It is intended only
> for the person to whom it is addressed. If you are not the intended
> recipient, you are not authorised to read, print, retain, copy,
disseminate,
> distribute, or use this message or any part thereof. If you receive this
> message in error, please notify the sender immediately and delete all
copies
> of this message.
>
> ---------------------------------------------------------------------
> 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