Meaningless Drivel is fun!*
The moose likes Struts and the fly likes Logic Iterate Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Logic Iterate Problem" Watch "Logic Iterate Problem" New topic

Logic Iterate Problem

Muralitharan Panneerselvam

Joined: Feb 15, 2007
Posts: 2
Hi everyone,

I am new to Struts.I am facing a problem with logic:iterate tag.

In the jsp page i m iterating thro an arraylist of bean using logic iterate tag.This is used to represent set of records of table in the database.While retrieving the data this is working fine.

When i again try to edit some of the values in the text box, my form bean is not holding the new values,but still retails the old values.

How can i solve this problem?
Thanks in advance.
Kaustabh Singha Roy
Ranch Hand

Joined: Oct 04, 2005
Posts: 43
Welcome to JavaRanch Muralitharan.

I can't find any problem in the logic:iterate tag operation. It is meant to perform a looping operation in a better way. And as you say it is doing that well. The binding of data to the form bean is done with the html: tags. I anticipate the problem should be there. Can you let us see the part of your code in the page.
[ February 16, 2007: Message edited by: Kaustabh Singha Roy ]
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
This looks like a situation where it may be appropriate to use "indexed properties". See this entry in the JavaRanch Struts FAQ for more information on how to do this.

Consultant, Sima Solutions
Muralitharan Panneerselvam

Joined: Feb 15, 2007
Posts: 2
Thanks ranchers........ It was working....

Those links were really usefull.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Logic Iterate Problem
Similar Threads
dynamic textbox generation in struts...
Cannot create iterator for FormBean
logic iterate tag for Float array
How to use bean:write to place Japanese string?
issue in getting the bean define id dynamically