You're not putting it in request scope, you're sticking it in your form - to put it on the request, use request.setAttribute("queuesName", theQueues);
-- Voytek Jarnot Quidquid latine dictum sit, altum viditur. > -----Original Message----- > From: Jason Vinson [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 25, 2003 12:35 PM > To: Struts Users Mailing List > Subject: Re: RE: RE: bean:write issues... or a better solution > > > It's in my action class. theForm is the ActionForm that gets > passed in. > > QueueListing[] theQueues = new QueueListing [cboQueue.getCount()]; > for (int i=0; i < theQueues.length; i++) { > theQueues[i] = new QueueListing(); > > theQueues[i].setTitle((String)cboQueue.getFields().getItem("ti > tle").getValue()); > > theQueues[i].setObjid((String)cboQueue.getFields().getItem("ob > jid").getValue()); > cboQueue.moveNext(); > } > theForm.setQueuesName(theQueues); > > > > -------Original Message------- > From: "Karr, David" <[EMAIL PROTECTED]> > Sent: 02/25/03 01:29 PM > To: Struts Users Mailing List <[EMAIL PROTECTED]> > Subject: RE: RE: bean:write issues... or a better solution > > > > > Show us where you're putting "queuesName" into request scope. > > > -----Original Message----- > > From: Jason Vinson [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, February 25, 2003 10:12 AM > > To: Struts Users Mailing List > > Subject: Re: RE: bean:write issues... or a better solution > > > > I tried this in my page and i get: > > [log error] > > javax.servlet.jsp.JspException: Cannot find bean under name > queuesName > > at > > > org.apache.struts.taglib.html.OptionsTag.getIterator(OptionsTa > g.java:418 > ) > > at > > > org.apache.struts.taglib.html.OptionsTag.doEndTag(OptionsTag.java:234) > > > > [jsp] > > <html:select name="spgQueuesForm" property="queueSelected" size="1" > > styleClass="fBdr-main"> > > <html:options collection="queuesName" property="objid" /> > > </html:select> > > > > > > queuesName is a request level collection, with getters and > setters for > > objid and title elements. > > > > any ideas? > > Jason > > > > > > > > > > > > -------Original Message------- > > From: Ray Madigan <[EMAIL PROTECTED]> > > Sent: 02/24/03 11:54 AM > > To: Struts Users Mailing List <[EMAIL PROTECTED]> > > Subject: RE: bean:write issues... or a better solution > > > > > > > > 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:[EMAIL PROTECTED] > > 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: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]