You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Andoni <an...@indigo.ie> on 2003/04/29 19:57:51 UTC

extending beans?

Hello, 

A few questions about beans:

1. can a bean extent another bean?

2. can a session scoped bean extend an application scoped bean?

Thanks,

Andoni.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: extending beans?

Posted by Erik Price <ep...@ptc.com>.

Andoni wrote:

> 1. can a bean extent another bean?

Sure.

> 2. can a session scoped bean extend an application scoped bean?

I thought that a bean's scope is defined when it is instantiated, in the 
JSP, not in the class.  So when you extend a bean with another class, 
you have no idea of the scope at that time.  So, to answer the question, 
  I would assume so.


Erik


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org