Travis Chase wrote:
That is where I first thought, but looking through the ActionMapping and ActionConfig classes I do not see where you can set the dynamic, declarative properties that get set with the set-property element. I say this because the DTD declares that the action element can contain zero or more set-property elements that I assume you can setup and populate in your Action subclass bean. Am I mistaken or is this a forward looking feature? I see where it is done with the datasource element.
-travis
-----Original Message-----
From: Karr, David [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 24, 2003 4:06 PM
To: Struts Developers List
Subject: RE: Action question
Wouldn't those properties be set on the ActionMapping object, not the
Action? That should be created before the Action object.
-----Original Message-----
From: Travis Chase [mailto:[EMAIL PROTECTED]] Sent: Friday, January 24, 2003 1:56 PM
To: Struts Developers List
Subject: RE: Action question
I would have to disagree because it looks like the RequestProcessor
loads a new Action if it does not exist in the actions HashMap. Yet,
when I follow the loading of the class down to the RequestUtils class I
see it creating a new instance but do not see it populating that
instance with the dynamic properties that could be in setup using the
set-property element. I see the use of BeanUtils.populate() for loading
the datasources, but fail to see where the dynamic properties of the
action is getting loaded. Is this feature not implemented yet?
-----Original Message-----
From: Ted Husted [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 24, 2003 3:07 PM
To: Struts Developers List
Cc: [EMAIL PROTECTED]
Subject: Re: Action question
This is a question best asked on the USER list.
http://jakarta.apache.org/struts/using.html
Though, the answer is that the ActionServlet loads everything.
-Ted.
Travis Chase wrote:
I am a newbie to the source base and was wondering what class loadsthe Action class with is properties defined in the action element as well as the dynamic properties defined in the set-property element that would be a child of the action element.thanks
*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
Travis L. Chase
Senior Programmer Analyst
Leggett & Platt, Inc.
[EMAIL PROTECTED]
417-358-8131 ext.3865
~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*
"A dead thing can go with the stream, but only a living thing can go against it." - G. K. Chesterton
"Impartiality is a pompous name for indifference, which is an elegant name for ignorance." - G. K. Chesterton
--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>For additional commands, e-mail:<mailto:[EMAIL PROTECTED]>
-- Ted Husted, Struts in Action <http://husted.com/struts/book.html> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>