Author | Message |
---|---|
p0941
Posts: 95
|
Posted 17:33 Apr 22, 2010 |
Hi Dr. Sun, I used to have this question in CS320: When I add items to List, the redirected page show the List result. Then if I "refresh" the result page, the List will add items itself. How can I fix this? Thank you! |
cysun
Posts: 2935
|
Posted 07:39 Apr 23, 2010 |
It should not happen if you did a redirect. My guess is that you did a forward, not a redirect. |
p0941
Posts: 95
|
Posted 21:33 Apr 25, 2010 |
Thank you, but what if I need to pass the collection object to be displayed? |
cysun
Posts: 2935
|
Posted 21:44 Apr 25, 2010 |
In most cases the objects can be retrieved from the database or the application scope after a redirect. If for some reason you must pass the objects using the request scope, then you have to do a forward, in which case the problem you described cannot be avoided. |