struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From LAW Andy <>
Subject Re: No container in actions after upgrading to 2.5.13
Date Mon, 11 Sep 2017 14:09:04 GMT

> On 11 Sep 2017, at 15:03, Lukasz Lenart <> wrote:
> 2017-09-11 16:01 GMT+02:00 LAW Andy <>:
>> I probably could, but I think this is less of an Action problem and more of a struts/spring
dependency injection problem. I don’t think there’s anything wrong with the Action class
code itself, unless there’s an annotation that I need to add now that wasn’t necessary
> How do you call the getText() method? in a constructor? or when
> initializing a field?

(Indirectly) from a JSP. This is “furniture” on the web page.

Each action has an “ActionPropertyKey” annotated on it. Each Action inherits from a base
class that has a getActionTitle() method on it.

JSP furniture calls getActionTitle() which extracts the Action-specific property key, appends
“.title” and then looks for the appropriate string from a properties file. It’s in there
that the getText() call gets hit.

> Regards
> -- 
> Łukasz
> + 48 606 323 122
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

View raw message