• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

logic:iterate problem

 
Rauhl Roy
Ranch Hand
Posts: 401
Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 401
Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
not clear sajay ramaswamy,

please give me some sample code.
 
Sujay Ramasamy
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic