Re[2]: Database access design question

2002-06-10 Thread Rick Reumann

On Monday, June 10, 2002, 10:13:34 AM, wbchmura wrote:

wEBc I took a quick look at the yahoo site - and will pursue that further, 
wEBc but can you recommend any write-ups anywhere on this?

  I just went through the same struggles you are going through.
  Robert wrote up a great post that really helped clarify things
  for me. I'm trying the find the post now and I'll send it to
  you. (I have it saved at home and if I can't find it I'll send
  it to you later).

  Also be sure to check out Chuck's chapter 6 at this link:
  http://www.theserverside.com/resources/strutsreview.jsp

  Vic's webPIM application handles the architecture in a different
  way and you could find out more by downloading the sample app:
  http://www.basebeans.com/downloads.jsp

  I'll also send you what I came up with if you are interested
  (which for the most part follows the design principals Robert
  and Chuck helped me understand).

-- 

Rick
mailto:[EMAIL PROTECTED]

Instead of studying for finals, what about just going to the Bahamas
and catching some rays? Maybe you'll flunk, but you might have flunked
anyway; that's my point. 
  -Jack Handey


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




RE: Re[2]: Database access design question

2002-06-10 Thread wbchmura


ANY information on this would be a great help.  

I am familar with the concept of patterns and have been trying to get 
used to them and how to use them...  

If you describe what you came up with that would be cool too!

If anyone has a good illustration of the model layers that work best I 
could use that also.  I've been thinking (up till recently) that the 
ActionClass is part of the controller, but now I am thinking of it 
almost as half controller, half view.  I am tryting to segment it out to 
mostly setting up the data to be sent to the view, and handling input so 
the controller acts correctly.

My head hurts sometimes, but the voices tell me it will be okay...







-Original Message-
From: maillist [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 10, 2002 10:29 AM
To: struts-user
Subject: Re[2]: Database access design question


On Monday, June 10, 2002, 10:13:34 AM, wbchmura wrote:

wEBc I took a quick look at the yahoo site - and will pursue that 
further, 
wEBc but can you recommend any write-ups anywhere on this?

  I just went through the same struggles you are going through.
  Robert wrote up a great post that really helped clarify things
  for me. I'm trying the find the post now and I'll send it to
  you. (I have it saved at home and if I can't find it I'll send
  it to you later).

  Also be sure to check out Chuck's chapter 6 at this link:
  http://www.theserverside.com/resources/strutsreview.jsp

  Vic's webPIM application handles the architecture in a different
  way and you could find out more by downloading the sample app:
  http://www.basebeans.com/downloads.jsp

  I'll also send you what I came up with if you are interested
  (which for the most part follows the design principals Robert
  and Chuck helped me understand).

-- 

Rick
mailto:[EMAIL PROTECTED]

Instead of studying for finals, what about just going to the Bahamas
and catching some rays? Maybe you'll flunk, but you might have flunked
anyway; that's my point. 
  -Jack Handey


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



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




RE: Re[2]: Database access design question

2002-06-10 Thread Craig R. McClanahan



On Mon, 10 Jun 2002 [EMAIL PROTECTED] wrote:

 Date: Mon, 10 Jun 2002 13:35:33 -0400
 From: [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED], [EMAIL PROTECTED]
 Subject: RE: Re[2]: Database access design question


 ANY information on this would be a great help.

 I am familar with the concept of patterns and have been trying to get
 used to them and how to use them...

 If you describe what you came up with that would be cool too!

 If anyone has a good illustration of the model layers that work best I
 could use that also.  I've been thinking (up till recently) that the
 ActionClass is part of the controller, but now I am thinking of it
 almost as half controller, half view.  I am tryting to segment it out to
 mostly setting up the data to be sent to the view, and handling input so
 the controller acts correctly.

 My head hurts sometimes, but the voices tell me it will be okay...


Actions are definitely in the controller tier, although in small apps
people tend to embed business logic directly in them (which makes them
somewhat part of the model tier as well).

The only time Actions are part of the presentation tier is when you are
generating the output directly from the Action (such as rendering some XML
content or a dynamically generated graph) rather than forwarding to a
presentation tier resource for the final output.

ActionForms, by the way, *are* part of the presentation tier -- their only
purpose in life is to represent the server side state of client user
interface components.

Craig


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




RE: Re[2]: Database access design question

2002-06-10 Thread wbchmura


Okay, here is why I was thinking that...

If I have business logic that would produce the results as a hashmap, 
but I need an arraylist to populate a control in the JSP, is the action 
now preparing data for the presentation as opposed to preparing data?  
for example, in a perfect world I should be able to take my business 
logic and use it as a desktop app if I slap a GUI on the front of it?  
Basically I would need to replace the ACTION with something else that 
would populate the data into the controls.  Hmmm, or would that be the 
JSP...

I have no idea what I am talking about...



-Original Message-
From: craigmcc [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 10, 2002 3:05 PM
To: struts-user
Cc: maillist
Subject: RE: Re[2]: Database access design question




On Mon, 10 Jun 2002 [EMAIL PROTECTED] wrote:

 Date: Mon, 10 Jun 2002 13:35:33 -0400
 From: [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED], [EMAIL PROTECTED]
 Subject: RE: Re[2]: Database access design question


 ANY information on this would be a great help.

 I am familar with the concept of patterns and have been trying to get
 used to them and how to use them...

 If you describe what you came up with that would be cool too!

 If anyone has a good illustration of the model layers that work best I
 could use that also.  I've been thinking (up till recently) that the
 ActionClass is part of the controller, but now I am thinking of it
 almost as half controller, half view.  I am tryting to segment it out 
to
 mostly setting up the data to be sent to the view, and handling input 
so
 the controller acts correctly.

 My head hurts sometimes, but the voices tell me it will be okay...


Actions are definitely in the controller tier, although in small apps
people tend to embed business logic directly in them (which makes them
somewhat part of the model tier as well).

The only time Actions are part of the presentation tier is when you are
generating the output directly from the Action (such as rendering some 
XML
content or a dynamically generated graph) rather than forwarding to a
presentation tier resource for the final output.

ActionForms, by the way, *are* part of the presentation tier -- their 
only
purpose in life is to represent the server side state of client user
interface components.

Craig


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



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