You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jason Vinson <vi...@mindspring.com> on 2003/02/24 17:37:18 UTC
bean:write issues... or a better solution
Hi folks,
I am using a container class (a collection referenced by queuesName) to hold data for populating a select list, and I can't access the internal strings with the getter and setter methods i have written. I have included code and can elaborate if needed. Can anyone tell me what I am overlooking... or should i try it with an Iterator tag instead?
TIA,
Jason
[jsp]
<html:select name="spgQueuesForm" property="queueSelected" size="1" styleClass="fBdr-main">
<html:options property="queuesName" value=<bean:write name="spgQueuesForm" property="objid"/>>
</html:select>
[/jsp]
[stack trace]
Mon Feb 24 11:29:00 EST 2003:<E> <WebAppServletContext-spg> Root cause of ServletException
javax.servlet.jsp.JspException: No getter method for property objid of bean spgQueuesForm
[/stack trace]
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
RE: bean:write issues... or a better solution
Posted by Ray Madigan <ra...@madigans.org>.
If queuesName is a session or request level attribute then
the options tag should be
<html:options collection="queuesName" property="objid"/>
given that the collection elements implement the getter getObjid ( ).
Hope this helps!
-----Original Message-----
From: Jason Vinson [mailto:vinsonizer@mindspring.com]
Sent: Monday, February 24, 2003 8:37 AM
To: Struts Users Mailing List
Subject: bean:write issues... or a better solution
Hi folks,
I am using a container class (a collection referenced by queuesName) to hold
data for populating a select list, and I can't access the internal strings
with the getter and setter methods i have written. I have included code and
can elaborate if needed. Can anyone tell me what I am overlooking... or
should i try it with an Iterator tag instead?
TIA,
Jason
[jsp]
<html:select name="spgQueuesForm" property="queueSelected" size="1"
styleClass="fBdr-main">
<html:options property="queuesName" value=<bean:write
name="spgQueuesForm" property="objid"/>>
</html:select>
[/jsp]
[stack trace]
Mon Feb 24 11:29:00 EST 2003:<E> <WebAppServletContext-spg> Root cause of
ServletException
javax.servlet.jsp.JspException: No getter method for property objid of bean
spgQueuesForm
[/stack trace]
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org