You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by sh...@ubs.com on 2004/03/08 10:24:07 UTC
RE: Own Action-Subclass: How to configure using "set-property"-elements?
Hi,
Those setters will be called on the ActionMapping you specify.So the same will me available in all actions as attributes on your custom ActionMapping class(Subclass of ActionMapping.)
And you have to configure the struts to use your action mapping as follows.
</global-forwards>
<!-- ========== Action Mapping Definitions ============================== -->
<action-mappings type="com.myApp.MyMapping">
HTH.
Regards,
Shirish
-----Original Message-----
From: Tim.Adler@Bertelsmann.de [mailto:Tim.Adler@Bertelsmann.de]
Sent: Monday, March 08, 2004 10:07 AM
To: struts-user@jakarta.apache.org
Subject: Own Action-Subclass: How to configure using
"set-property"-elements?
Hey everbody!
I derived my own Action-subclass for doing multiple stuff in my webapp on
every request. Part of the "multiple-stuff" is a method that checks if the
session got lost, but only if needed at that certain point in the
application (like when a formbean is used over multiple request for creating
an order or stuff).
Now, my current pratice is to call that method manually in every custom
action I write, which is somehow unsatisfying. I'd rather like to be able to
configure this session-safety directly through the struts-config.xml. I saw
that there are <set-property> elements, which seem like they could give me
such an ability based on every action-mapping. That'd be nice.
But HOW can I access those properties in my action?! I can't seem to find
any methods for that.
Thx for any help!!
_______________________________________
Tim Adler, Abt. SDA1
Adress Management Solutions
AZ | Direct
Carl-Bertelsmann Straße 161s
D-33311 Gütersloh
Tel.: 05241/ 80 - 89574
tim.adler@bertelsmann.de
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org