File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Iterating the collection

 
Anonymous
Ranch Hand
Posts: 18944
  • 0
  • send pies
  • Quote
  • Report post to moderator
i'm trying to store the value to the variable retrived from the collection using <logic:iterate>. is it possible.

for example

<logic:iterate id="listingcinemas" name="movie" scope="session">
<bean:write name="listingcinemas" property="showtiming"/>
</td>
</tr>
</logic:iterate>

the above code is working properly. but i want to store the value of the property showtiming in to another variable. how to do
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
raj,

Welcome to JavaRanch!

We ain't got many rules 'round these parts, but we do got one. Please change your display name to comply with The JavaRanch Naming Policy.

Thanks Pardner! Hope to see you 'round the Ranch!
 
Sree Jag
Ranch Hand
Posts: 77
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Raj,

You can store the value to the variable retrived from the collection using
<logic:iterate id="listingcinemas" name="movie" scope="session">

<bean efine id="show" name="listingcinemas" property="showtiming" toScope="page"/>
<%= show %>

<bean:write name="listingcinemas" property="showtiming"/>
</td>
</tr>
</logic:iterate>

Hope this helps,
Seshu
 
Anonymous
Ranch Hand
Posts: 18944
  • 0
  • send pies
  • Quote
  • Report post to moderator
thanx! it's working properly.

is there anyway to control the <logic:iterate/> loop like

termination or pause
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic