You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Sarat, Sukla (S.)" <ss...@ford.com> on 2005/11/11 11:12:14 UTC

Cannot find bean any scope

Hello

Here is my code
<logic:iterate id="mYear" name="modelYear">
			<html:option value="">
			<bean:write name="mYear"/>
			</html:option>
</logic:iterate>
It is giving error like "cannot find bean mYear in any scope"
Any suggestion???
Thanks in advance.

Regards,
Sarat


RE: Cannot find bean any scope

Posted by "Srinivas.V" <sr...@vertexcs.com>.
Hi,
can u use name in bean attribute is same name in the logic iterate name
attribute.......
means
<logic:iterate id="mYear" name="modelYear">
			<html:option value="">
			<bean:write name="modelYear"/> instead of mYear
			</html:option>
</logic:iterate>

thank you
srinivas

-----Original Message-----
From: Sarat, Sukla (S.) [mailto:ssarat@ford.com]
Sent: Friday, November 11, 2005 3:42 PM
To: Struts Users Mailing List
Subject: Cannot find bean any scope


Hello

Here is my code
<logic:iterate id="mYear" name="modelYear">
			<html:option value="">
			<bean:write name="mYear"/>
			</html:option>
</logic:iterate>
It is giving error like "cannot find bean mYear in any scope"
Any suggestion???
Thanks in advance.

Regards,
Sarat



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Cannot find bean any scope

Posted by Murray Collingwood <mu...@focus-computing.com.au>.
Try <jsp:getProperty name="mYear">

Cheers
mc

On 11 Nov 2005 at 18:12, Sarat, Sukla (S.) wrote:

> Hello
> 
> Here is my code
> <logic:iterate id="mYear" name="modelYear">
> 			<html:option value="">
> 			<bean:write name="mYear"/>
> 			</html:option>
> </logic:iterate>
> It is giving error like "cannot find bean mYear in any scope"
> Any suggestion???
> Thanks in advance.
> 
> Regards,
> Sarat
> 
> 



FOCUS Computing - web design
Mob: 0415 24 26 24
murray@focus-computing.com.au
http://www.focus-computing.com.au




-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.12.8/166 - Release Date: 10/11/2005


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org