Apache Struts 2 Documentation > Home > FAQs > Should the framework call getModel multiple times as a page renders |
Right now, the expression language (OGNL) will call getModel, or any other Value Stack property, each time the method is referenced. One possible enhancement to the framework would be to enable caching, to avoid redundant calls when you know the value will not change.