You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Dave <no...@yahoo.com> on 2005/08/09 20:39:52 UTC
Accessing the right bean
On my form is a bean called member. member has a method that returns an
optionsCollection. The first value in the collection should start at a value
specified another property of member. However, it appears that a new member
object is being created instead of the pre-existing one on my form. This is the
syntax I'm using:
<html:select property="member.startYear">
<html:optionsCollection property="member.displayYear" value="val"
label="text"/>
</html:select>
What syntax will cause me existant bean to be used instead of a new being
constructed?
(I have very good reason to believe that the property I'm interested on my bean
is properly there since it appears on the form with the correct value).
TIA,
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org