• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Jsp Array Iteration

 
Ranch Hand
Posts: 120
Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello i am sandeep and i am new to spring,
i am sending an ArrayList of EmployeeBean Class to "registration.jsp" to modify/update record facility for user,
the Controller from where i am sending the Arraylist is as,




This is my jsp page where i am accessing the Arraylist,




The values gets populated at the time of update very well,
I can update it, but at the time of registering new user,
The page does not have Arraylist object so it skips the for loop and my page could not get displayed,
I want to show my page while adding employee and populate with employee information for update also,
I hope i have given sufficient information,
Thank you in advance.
 
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you have given what you have done but what you are asking for is not quit clear,
because you said

I can update it, but at the time of registering new user,
The page does not have Arraylist object so it skips the for loop and my page could not get displayed,



i dont understant what will be the need of any arraylist object while registering the new employee, you will be filling the form and the appropriate controller with which have mapped will be able to get the form field through the HttpServletRequest object, and you can go on.

and more over you have not specified whether you are using any DB to persist the data, because once if it is with the DB you can make use of the ORM tool to make a dao call to display you required information on the UI layer
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic