bamuthan6666
Programmer
I need help with the logic:iterate, I have just started learning struts.
I have a jsp which needs a listbox which should read the items of the listbox from a vector or array.
I created the vector in my mainaction.java file and in my mainform.java file I have defined the getter and setter.
My jsp during run time is giving me null pointer.
I just need to understand as to how this works,my jsp has name,address,age and the educationfield is the dropdown,once the values are entered and action button next clicked it goes to mainaction.java which inturn sends a mail and moves to next page.
i am not sure if I should point the listbox to mainaction.java or should i create a new action file which should be called onload.
Basically the listbox should be prepopulated when the form is loaded.
Please help.
Thanks!
I have a jsp which needs a listbox which should read the items of the listbox from a vector or array.
I created the vector in my mainaction.java file and in my mainform.java file I have defined the getter and setter.
My jsp during run time is giving me null pointer.
I just need to understand as to how this works,my jsp has name,address,age and the educationfield is the dropdown,once the values are entered and action button next clicked it goes to mainaction.java which inturn sends a mail and moves to next page.
i am not sure if I should point the listbox to mainaction.java or should i create a new action file which should be called onload.
Basically the listbox should be prepopulated when the form is loaded.
Please help.
Thanks!