struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Travis Chase" <travis.ch...@leggett.com>
Subject RE: Action question
Date Fri, 24 Jan 2003 22:09:09 GMT
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:David.Karr@wamu.net]
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:travis.chase@leggett.com] 
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:husted@apache.org]
Sent: Friday, January 24, 2003 3:07 PM
To: Struts Developers List
Cc: struts-user@jakarta.apache.org
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 loads
the 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.
> travis.chase@leggett.com
> 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:struts-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:struts-dev-help@jakarta.apache.org>
> 
> 


-- 
Ted Husted,
Struts in Action <http://husted.com/struts/book.html>


--
To unsubscribe, e-mail:
<mailto:struts-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-dev-help@jakarta.apache.org>


--
To unsubscribe, e-mail:
<mailto:struts-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-dev-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:struts-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-dev-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:struts-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-dev-help@jakarta.apache.org>


Mime
View raw message