You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by OJ...@gmx.de on 2006/02/24 14:00:54 UTC

Cannot find bean in scope Problem

Hi, 

I have a form with a List and want to show the values on my JSP. But when I
start my JSP the bean "id" cannot be found in any scopy. I dont understand
why struts is looking for a bean "id" this is only my id value of the
iterate tag of my JSP. Here is my JSP code:

<table>
 <logic:iterate name="chooseFormIDForm" id="id" property="forms"
type="de.FVKN.FormBean" scope="session">
	<tr align="left">
	 <td>
            <html:text name="id" property="formID" />
	 </td>
	 <td>
	    <html:text name="id" property="formkey" />
	  </td>
	</tr>
 </logic:iterate>
</table>

-chooseFormIDForm is the name of my Form
-the id is my variable for iterating over my List
-the property forms is my List with the FormBean Objekts inside

Why do I get cannot find bean "id" in any scope Error?

Hope anyone can help because I looking for hours for a solution :-(

Thanks for your help.

-- 
10 GB Mailbox, 100 FreeSMS/Monat http://www.gmx.net/de/go/topmail
+++ GMX - die erste Adresse f�r Mail, Message, More +++

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


Re: Cannot find bean in scope Problem

Posted by David Delbecq <de...@oma.be>.
I bet a box of chocolates you forgot to define or badly defined the
logic taglib in your .jsp header :)

OJAY78@gmx.de a écrit :

>Hi, 
>
>I have a form with a List and want to show the values on my JSP. But when I
>start my JSP the bean "id" cannot be found in any scopy. I dont understand
>why struts is looking for a bean "id" this is only my id value of the
>iterate tag of my JSP. Here is my JSP code:
>
><table>
> <logic:iterate name="chooseFormIDForm" id="id" property="forms"
>type="de.FVKN.FormBean" scope="session">
>	<tr align="left">
>	 <td>
>            <html:text name="id" property="formID" />
>	 </td>
>	 <td>
>	    <html:text name="id" property="formkey" />
>	  </td>
>	</tr>
> </logic:iterate>
></table>
>
>-chooseFormIDForm is the name of my Form
>-the id is my variable for iterating over my List
>-the property forms is my List with the FormBean Objekts inside
>
>Why do I get cannot find bean "id" in any scope Error?
>
>Hope anyone can help because I looking for hours for a solution :-(
>
>Thanks for your help.
>
>  
>


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