struts.xml:
<package name="default" extends="tiles-default" namespace="/„ >
…
<global-allowed-methods>abort,execute,search,reset,download,refresh,delegate,forward,release,saveComments</global-allowed-methods>
</package>
Java:
@AllowedMethods(value = {"changeLanguage", "deleteAttachment",
"uploadMailAttachment"})
public class SpecifyMailTask extends AbstractTask {
@AllowedMethods(value = {"saveInputAndSuccess"})
public abstract class AbstractTask extends AbstractBasicJbpmTask implements
ModelDriven<TaskModel>, Preparable {…}
@AllowedMethods(value = { "abort", "cancel", "claim", "claimAndStart",
"claimAndSkip", "complete", "delegate", "forward",
"incomplete", "release", "skipAndComplete", "start", "suspend",
"uploadTaskAttachment"})
public abstract class AbstractBasicJbpmTask extends AbstractCrmAction
implements ModelDriven<TaskModel>, Preparable {…}
This it would look like, if we could use inheritance. In others cases we have
one or more layer of inheritance more.
Regards,
Britta Katzenbach
_____________________________________________________
e-Mail: [email protected]
Tel. +49 30 27019889
Dr. Lippke & Dr. Wagner GmbH
Nassauische Str. 25
10717 Berlin
Tel./Fax: +49 30 2147309-0 / 2
Geschäftsführer: Dr. Andreas Lippke und Florian Schlittgen
Registergericht: Amtsgericht Berlin HRB 25607
> Am 25.01.2018 um 10:32 schrieb Lukasz Lenart <[email protected]>:
>
> 2018-01-25 9:31 GMT+01:00 Britta Katzenbach <[email protected]>:
>> Hello!
>>
>> we migrated a project to struts 2.5. Therefore we had to add the allowed
>> methods to the actions. We use a bit of inheritance in the action and would
>> appreciate, if the allowed methods would be inherited as well. We tried as
>> well to define some additional allowed methods on certain packages. But this
>> works only if I do not add methods directly on a certain action class. Is
>> there a reason why allowed methods are not inherited? Why can I not add
>> allowed methods to all actions in the package and add special methods on
>> certain actions?
>
> Can you post an example config? How deep inheritance do you have?
>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
smime.p7s
Description: S/MIME cryptographic signature

