You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by bobd <gr...@yahoo.com> on 2003/03/03 17:57:21 UTC
bean constructors and
I have a JSP that is successfully creating an instance
of a bean class in the session, but I'm failing to
understand a problem with retrieving data from that
bean.
The bean's constructor (zero arguments) is apparently
not executing defined routines. However, it can
retrieve private data members made accessible via
property getters.
<jsp:useBean id="catalog" scope="session"
class="edu.Catalog"/>
<jsp:getProperty name="catalog" property="title"/>
<jsp:getProperty name="catalog" property="list"/>
The title property is retrieved because it is
basically hard-coded in the bean, not dependent on
anything in the constructor. The list property is not
showing up at all, it is defined by a routine in the
bean's constructor.
anybody know what I'm doing wrong?
thanks,
-bob
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org