File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Collection of bean input from form-problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Collection of bean input from form-problem" Watch "Collection of bean input from form-problem" New topic
Author

Collection of bean input from form-problem

yash Vi
Ranch Hand

Joined: Jul 17, 2005
Posts: 41
Hi,

The issue is like this.I am displaying a list of employee details in the page from
the database.Each employee has a appraisal field.The user inputs all the fields and
click save in one go.The next page displays the details and as saved.

As this is a prepopulated form,
1.My form bean has a collection
2.The collection gets populated with employeebean with the info from the database.
3.I use logic:iterate and display the info.

I am able to do till the prepopulated form and when they click the save button
the corresponding action class is triggered and the next page is rendered but the info is
not displayed.

Can you help me on where I am goin wrong and how to do it


Thanks for your reply and time.<br />Windows 2000,j2sdk1.4.2_08
Srilakshmi Vara
Ranch Hand

Joined: Jul 21, 2004
Posts: 169
Check your action mapping for this you might need to put your form in session scope.
yash Vi
Ranch Hand

Joined: Jul 17, 2005
Posts: 41
I guess it is the prepopulated form which when submitted behaves as anyother form.

Anyway putting it in session scope dint help
Pranav Sharma
Ranch Hand

Joined: Oct 27, 2003
Posts: 258
you will probably have to use the lazylist class in your form, so the form/collection is updated correctly

look at this link, great example how to use it.
yash Vi
Ranch Hand

Joined: Jul 17, 2005
Posts: 41
Thank you very much I hope this helps me
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Collection of bean input from form-problem