Can someone explain to me how the <bean> tag in the struts.xml file works? I
have read the docs at the following URL:

http://struts.apache.org/2.0.8/docs/bean-configuration.html

The part I'm confused on is how "beans" defined with the <bean> tag are used
by the Struts 2 framework. Are these "beans" injected into objects in the
framework or does the framework explicitly look them up. My guess is that
they are injected automatically. Does Struts 2 try to inject any bean
defined with a <bean> tag into all framework objects or only specific ones?

Another important detail I don't understand is how the "name" attribute of
the <bean> tag works. Basically what is its significance? If you create two
beans that have the same type, but different names, what does that mean?

This information I'm trying to figure out is very unclear with the current
docs.

Any help is greatly appreciated.

-Bill
-- 
View this message in context: 
http://www.nabble.com/-s2--%3Cbean%3E-tag-in-struts.xml---what-is-it-for--tf4090048.html#a11627233
Sent from the Struts - User mailing list archive at Nabble.com.


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

Reply via email to