Struts iterates on the stack until it finds a result, unless a named object is used in the expression (no iteration, just a direct lookup). So yeah, if you use #request.xyz and xyz is in the request scope, it will be faster.
musachy On Thu, Jan 8, 2009 at 1:21 PM, Andy <andrh...@hotmail.com> wrote: > > Would specifying a scope (ex. #request) speed up OGNL searches of the Value > Stack? Otherwise I would image the Value Stack would have to search all > scopes if scope was not specified? If I have 1,000 items in the Value Stack > and the Value Stack is searched 50 times (50 tags in my JSP), then that could > take a while, especially if the value Stack is using reflection, right? > > Just curious what the S2 minds think.. Thx. > > _________________________________________________________________ > Windows Live⢠Hotmail(R): Chat. Store. Share. Do more with mail. > http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t1_hm_justgotbetter_explore_012009 -- "Hey you! Would you help me to carry the stone?" Pink Floyd --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org