"Jeff Ousley" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello! > > Is there a method I can override in a bean that'll get > executed when a bean is first used and not on > subsequent calls? Basically I'm page that uses a bean > such as: > > <jsp:useBean id="termwatch" > class="termwatch.TermWatchBean" scope="session"/> > > In order to use the termwatch bean some code inside > the bean needs to be executed first. I can create a > method and explicitly call it, but is there a better > way? Do beans have cnstructors? Or should I be > handling this on my page in a jspInit() method? >
It is perfectly legal to specify a constructor for your bean, as long as it takes no arguments. > thanks! > -jeff > > __________________________________________________ > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now. > http://mailplus.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
