This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Spring and the fly likes Jsp Array Iteration Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Jsp Array Iteration " Watch "Jsp Array Iteration " New topic
Author

Jsp Array Iteration

sandeep lokhande
Ranch Hand

Joined: Jan 25, 2010
Posts: 118

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.


Thanks and Regards,
Sandeep Lokhande.
saipraneeth nallapareddy
Ranch Hand

Joined: Dec 02, 2009
Posts: 159
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
 
wood burning stoves
 
subject: Jsp Array Iteration
 
Similar Threads
JSP Help Regarding the Radio Button
Redirecting a page
Error comes whilke compiling the jsp page
Spring JasperException
Help me about html:select