--- "Mehta, Chirag (IT)" <[EMAIL PROTECTED]> wrote:
> Sorry, heres another newbie question.
>  
> I have a bean that stores collections of data that have been retrieved
> from a database.
>  
> When I try and logically iterate these collections on my JSP page, it
> says "Cannot find bean Results in any scope" 
>  
> But my bean does exist and println its results on my tomcat window?
>  
> What am I doing wrong?

Using the JSTL you can do this:

<c:forEach var="res" items="${Results}">
   <c:out value="${res.myProperty}"/>
</c:forEach>

That assumes that the objects stored in your "Results" collection have a
getMyProperty() method.

David


>  
>  
> Thanks
>  
> Chirag
>  
>  
> 
> 
> --
> NOTICE: If received in error, please destroy and notify sender.  Sender
> does not waive confidentiality or privilege, and use is prohibited.


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to