This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
// get the list of orders from our business layer
List resultList = Some backend proc call to get the employee data;
// save the list of order on our form
the problem is when I am submitting the for it is not saving the value of text field into the myMultipleForm....
can any one help me out...this thing is not working at all when our formbean is in request scope but when we keep this in session scope we are getting the same list which we are using to pupulate the page while we want the edited value also....
Please UseCodeTags when posting code or configuration. Unformatted code and configuration is very difficult to read. You can edit your post to include them by using the button.
Joined: Dec 01, 2008
What I wonder is how is your form submission working in the first place.
In the jsp you are setting a property called employeeId while that property is just not available in the Employee object at all. The approach of using your List is correct. From the front of it the only apparent mistake is that a mismatch between the property "employeeId" and also I have one concern . Why are you using employeeId twice in 2 fields (one hidden and one text). That approach is not recommended in any situation.
Joined: Dec 07, 2009
no that hidden field is not there and in form employeeId should be the correct variable. I have written it by mistake. second thing I have only written the code to display my page. for saving the text field I have writen different action.