aspose file tools*
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 Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "logic:iterate problem" Watch "logic:iterate problem" New topic
Author

logic:iterate problem

Rauhl Roy
Ranch Hand

Joined: Aug 01, 2006
Posts: 401

hi,

senario,

orders, publication and edition data comming from the back end system, i have to show thos fields on the web page along with check boxes and after selecting the check boxes, i have to show the selected data through check boxes in another 2 jsp pages then that data has to be saved in the back end.

my problem occures after i selecting the data through the check boxes i am not able to show the selected data in another pages. can you please tell me how to deal with this problem.

regards,
rahul
code is




this is for retriving the data from the back end system and working fine.
but i do no know how to iterate the selected check boxes and show that data on different jsps.

i tried using this code but never works


and this too
Sujay Ramasamy
Greenhorn

Joined: Jun 22, 2007
Posts: 4
hi rahul,
you are getting selected check box data in string[]after that, you have iterate this selected check box(String array) data and all listed original data,you have compare both value using if condition then to add to new arraylist using same bean properties. Now you have to iterate new list new list contain only selected items.
Rauhl Roy
Ranch Hand

Joined: Aug 01, 2006
Posts: 401

not clear sajay ramaswamy,

please give me some sample code.
Sujay Ramasamy
Greenhorn

Joined: Jun 22, 2007
Posts: 4
Hi Rauhl,
MY Senario,

I am doing shopping cart application here, I am providing option to user to select books by using check box


I am comparing selected books and Total booklist(L) if is match then add to new arrayList after that you have iterate new arrayList (This contain only Selected books).
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: logic:iterate problem