Posted By:
Rick_cols
Posted On:
Saturday, July 19, 2003 06:53 AM
Hi, I am a newbie for Struts. I have 2 dropdown lists to prepopulate, I use in my jsp page, but I am not sure how I can define my actionForm and action class. If I have a list of student beans to populate, should I do something like this? -in actionForm: Collection studentList; Collection getStudentList(); Void setStudentList(Collection list); -in my Action class: get list from database set list in request scope Am I doing right? But I have not benn able to pre-load the lists. I do not know where I did wrong. Another thing: after I pre-load lists, user will select criteria and do search. Should I implement this in a same page/for
More>>
Hi,
I am a newbie for Struts. I have 2 dropdown lists to
prepopulate, I use
in my jsp page, but
I am not sure how I can define my actionForm and action class.
If I have a list of student beans to populate, should I do something like this?
-in actionForm:
Collection studentList;
Collection getStudentList();
Void setStudentList(Collection list);
-in my Action class:
get list from database
set list in request scope
Am I doing right? But I have not benn able to pre-load the lists. I do not know where I did wrong.
Another thing: after I pre-load lists, user will select criteria and do search. Should I implement this in a same page/form/action?
This is my first project, so please hel me and clarify these
things for me.
thanks,
rick