Hello, 

I've only just started using struts, so I need some input on 
how to approach struts designs...

I need to set a couple of configurable variables in each Action
class in my struts application. For plugins the set-property tag
is used to set variables in the plugin directly, and I understand
it is done in a similar way for ActionMappings, but not so in
Actions. My problem is that I really need to set some variables in
the Action, not the ActionMapping.

Sure it is possible to typecast the ActionMapping and pass it
around throughout the Action from the execute method, to access
configuration variables, but that seems rather cumbersome.  

What are good alternatives when setting configuration values in
Actions? Does everyone just use init-params like in normal
Servlets or is there some other handy configuration method for
Actions that I have missed? 

Btw, how come the feature with introspection isn't available for
actions, but only for actionmappings? Are actions not supposed to
contain any configurable variables at all?

regards,
-- 
Fredrik Jonson

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

Reply via email to