Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Bean and memory

 
Anoop Krishnan
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<jsp:useBean id="Params" class="com.financial.watchlist.AddWatchListParams" scope="page" />
<jsp:setProperty name="Params" property="*" />
I am creatting a bean like this which will check the validitty of individual parameters in the request.
So the problem is that an instance of this bean is made each time when the request is made which will consume a lot of memmory as the time grows.
Is it possible for me to implement in any other ways
 
Jayson Falkner
Author
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Using page scope also means the bean will be recycled after the page is done. Keeping the setup you have right now should be perfectly fine.
Jayson Falkner
V.P./CTO, Amberjack Software LLC
Jayson@jspnsider.com
www.jspinsider.com
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic