This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jsp Array Iteration

 
sandeep lokhande
Ranch Hand
Posts: 120
Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
  • 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.
 
saipraneeth nallapareddy
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic