Hi Andy I'm afraid you are mixing jsp scriptlet with JSTL grammar You can use two approaches: If you want to use scriptlet (like you are doing now) You must of course declare it, e.g. like <jsp:useBean id="productData " class="com.mypackage.Myclass" scope="session|request|page"/>
Then if tou want to use "someCount" property in you scriptlet you have to stick with usual java syntax: <% for(int i = 0; i < productData.getSomeCount(); i++){ %> <%= productBean.getMyText() %> <% } %> otherwise you may consider uring JSTL, that is much cleaner than mixing java code with HTML -----Messaggio originale----- Da: Andy Engle [mailto:[EMAIL PROTECTED] Inviato: luned́ 24 maggio 2004 5.50 A: [EMAIL PROTECTED] Oggetto: From bean into "for" loop Hi all, I am trying to do something as simple as writing a FOR loop with some information that I have in a bean, but this is proving to be quite a bit more cumbersome and difficult than I thought it would be. For some reason, everything I try seems to fail. Here is a short example of what I'm trying to do: <% for(int i = 0; i < ${productData.someCount}; i++) { %> // Write my text here <% } %> What am I missing here? If you could help me I'd appreciate it -- enough time wasted on this thing already. Thanks, Andy --------------------------------------------------------------------- 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]