Apache Struts 2 Documentation > Home > FAQs > Should the framework call getModel multiple times as a page renders |

Apache Struts 2 Documentation
Should the framework call getModel multiple times as a page renders
Edit Page Browse Space Add Page Add News
Added by tm_jee, last edited by Ted Husted on Jul 22, 2006 (view change) show comment hide comment
Comment:
Update formatting
View page history

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.