• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

logic:iterate problem

 
Ranch Hand
Posts: 401
Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).
 
Look! I laid an egg! Why does it smell like that? Tiny ad, does this smell weird to you?
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic