Reputation: 1455
I am using strut2 in my project in which in jsp pages i have to show list of items greater than 500. I have used following tags.
<s:iterator value="list" status="status" >
<s:property value="%{val1}" />
<s:property value="%{val2}" />
<s:property value="%{val3}" />
<s:property value="%{map[val]}" />
</s:iterator>
when the list size is large, it iterates very slowly. while iterating, i am also retrieving values from maps.
I am not able to find what is exactly happening . what should i do to iterate fast or improve performance of iterator.
Thanks
Upvotes: 0
Views: 2356
Reputation: 23587
you are using very old version of Struts2(2.0.1) and in that case might be using old version of OGNL which was having really some bad performance issues.
Suggest you to first go through some performance tips. performance-tuning
next step is to manually update the version of ognl you're using in your own app in that case you might have to add javassist jar.
Go through the Struts2 mailing list discussion thread for similar issue.
Upvotes: 2