jQuery in Action, 3rd edition
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
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.
I agree. Here's the link: http://aspose.com/file-tools
subject: Logic Iterate Problem
It's not a secret anymore!