You most-definitely need to instantiate a bean named feature.  The
reason it "Cannot find bean feature in any scope" is because there is no
bean named feature in any scope.  In a real-world application, you would
probably do this in an action via getSession().setAttribute("feature",
new Feature(...)) or request.setAttribute(...).

Tim

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, January 06, 2004 8:17 PM
> To: Struts Users Mailing List
> Subject: Need some Multibox help.
> 
> 
> Hi everyone. 
> 
> I need some simple multibox help here.
> 
> I've gone through the example in the O Reilly book, and have 
> thoroughly torn apart the example at 
> http://j2ee.lagnada.com/struts/multibox-> example1.htm and I 
> cannot get mine to work.
> 
> The problem 
> lies in the logic:iterate's id tag.
> 
> error:  [ServletException 
> in:/WEB-INF/pages/WFSConfigContent.jsp] Cannot find bean 
> feature in any scope'
> 
> Where id="feature"
> 
> Here's my code, which is mostly copied from the OReilly book.
> 
> <logic:iterate id="feature" name="wfsContentForm" 
> property="features"> <html:multibox property="selectedFeatures">
>       <bean:write name="feature"/>
> </html:multibox>
>       <bean:write name="feature"/>
> </logic:iterate>
> 
> Is there something I have to do to instantiate a bean named 
> 'feature'? in the above example link, I can't find '_bean' 
> referenced anywhere else.
> 
> Thanks!
> 
> Richard
> 
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to