You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Nagendra Kumar O V S <na...@ikigo.com> on 2003/08/05 14:41:56 UTC

Re: {OT}Cannot find bean "XXX" in any scope - error

well he is Mahesh Revuri working in embedded systems

-------Original Message-------

From: Struts Users Mailing List
Date: Tuesday, August 05, 2003 05:48:05 PM
To: Struts Users Mailing List
Subject: Re: Cannot find bean "XXX" in any scope - error

thanks..it is working...
BTW..what's his name?
Thanks,
Arindam








"Nagendra 
Kumar O V S" To: <st...@jakarta.apache.org> 
<nagendra@iki cc: 
go.com> Subject: Re: Cannot find bean "XXX" in any scope - error 

08/05/2003 
05:45 PM 
Please 
respond to 
"Struts Users 
Mailing List" 






hi, 
u don't have to declare any classes .. the framework pick it up from the
classpath 

<logic:iterate name="tayloringForm" property="openFailures" id=
openFailureDescriptor" type 
="tayloring.OpenFailureDescriptor"> 

is absolutely correct & should work for u... 

BTW, FYI my brother-in-law is working in ur company.... 

-- nagi 
-------Original Message------- 

From: Struts Users Mailing List 
Date: Tuesday, August 05, 2003 05:16:56 PM 
To: Struts Users Mailing List 
Subject: Re: Cannot find bean "XXX" in any scope - error 

Thanks Nagi..the error for Form bean is gone...but now the error is 
displayed for the descriptor class..".Cannot find bean 
OpenFailureDescriptor in scope request" 
Property openFailures in tayloringForm is a List which holds 
OpenFailureDescriptor objects. 

i have tried changing the logic:iterate as below 
<logic:iterate name="tayloringForm" property="openFailures" id 
="OpenFailureDescriptor" scope="request" type 
="tayloring.OpenFailureDescriptor"> 

Should i declare all the descriptor or value objects somewhere? 

Thanks, 
Arindam 








"Nagendra 
Kumar O V S" To: <st...@jakarta.apache.org> 
<nagendra@iki cc: 
go.com> Subject: Re: Cannot find bean "XXX" in any scope - error 

08/05/2003 
05:11 PM 
Please 
respond to 
"Struts Users 
Mailing List" 






hi, 
the name of the bean is case-sensitive... 
<logic:iterate name="tayloringForm" property="openFailures" id=
OpenFailureDescriptor"> 
"tayloringForm " as defined in the config file 

check it out........ 

--nagi 

-------Original Message------- 

From: Struts Users Mailing List 
Date: Tuesday, August 05, 2003 04:47:14 PM 
To: Struts Users Mailing List 
Subject: Cannot find bean "XXX" in any scope - error 

Guys, 
Any help is appreciated in this regard - 
In struts-config.xml, I have an action mapping as below - 
<action name="tayloringForm" path="/Tayloring/ShowAllOpenFailures" 
scope="request" type="tayloring.ShowAllOpenFailuresAction" validate 
="false"> 
<forward name="success" path 
="/pages/tayloring/all_open_failures.jsp" /> 
</action> 

and definition for form bean is as below - 
<form-bean name="tayloringForm" type="tayloring.TayloringForm"> 
</form-bean> 

ShowAllOpenFailuresAction class, sets a property in the form bean, 
((TayloringForm)form).setOpenFailures(openfailures); and fowards to 
"success" 

In all_open_failures.jsp, i have the following 
<logic:iterate name="TayloringForm" property="openFailures" id 
="OpenFailureDescriptor"> 
<tr><td width="14%" align="center" bgcolor="#bbbbbb"><b><bean:write 
name="OpenFailureDescriptor" property="facilityID" 
/></b></td> 
</logic:iterate> 

When i access this page via Tayloring/ShowAllOpenFailures action, i get the 
following error, 
org.apache.jasper.JasperException: Cannot find bean TayloringForm in any 
scope 
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
java:254) 

at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) 
....... 


Thanks, 
Arindam 







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


. 










____________________________________________________ 
IncrediMail - Email has finally evolved - Click Here 




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


. 










____________________________________________________
IncrediMail - Email has finally evolved - Click Here




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


.