Meaningless Drivel is fun!*
The moose likes Servlets and the fly likes Bean and memory Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Bean and memory" Watch "Bean and memory" New topic
Author

Bean and memory

Anoop Krishnan
Ranch Hand

Joined: May 03, 2001
Posts: 163
<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


I just want to know is there any body call my bean's Getter and Setter methods with "Please" in front - My favorite quip from Bugzilla
Jayson Falkner
Author
Ranch Hand

Joined: May 07, 2001
Posts: 57
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


Jayson Falkner<br />jayson@jspinsider.com<br />Author of <a href="http://www.jspbook.com" target="_blank" rel="nofollow">Servlets and JavaServer Pages; the J2EE Web Tier</a>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Bean and memory
 
Similar Threads
Question about Security + Transaction
jsp:setProperty
Message lost or are not pulled by MDB
Can a EL expression pass a value that was entered into a form?
Front Controller and Commands