[prev in list] [next in list] [prev in thread] [next in thread] 

List:       struts-user
Subject:    Re: Struts design question
From:       "Ted Husted" <news.ted () husted ! com>
Date:       2000-12-27 23:53:34
[Download RAW message or body]

> Why do Action, ActionForm and ActionMappings classes keep references
to the ActionServlet?

So that they can access the many features available through the
servlet, like logging and (lately) a JBDC DataSource.

The ActionServlet is like a switchboard, and the references a way they
can dial "0" for the operator.

For more about how Struts works, there is a  "Walking Tour of the
Example Application" at 

< http://husted.com/about/struts/ >

along with a sample JBDC applicaton. 

*********** REPLY SEPARATOR  ***********

On 12/27/2000 at 6:41 PM Punyansky, Alex wrote:

Hi,

I'm going through Struts code trying to understand how this whole thing
works. I could figure out almost everything except one thing: Why do
Action,
ActionForm and ActionMappings classes keep references to the
ActionServlet?
Can anybody explain this?

Thanks

Alex

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic