Hello,
I am working on my first
struts application and am caught up with the listbox. Instead of hard coding the values need to generate it with an vector, i read couple of articles,but never successful.
I defined the vector and added couple of values.
When i defined it in
jsp, i got null pointer, not sure why, can someone give me a simple example of logic iterate.I have problem understanding what should go in the name"..." property"...."
The file I have the vector is mainaction.java and the getter and setters are in mainform.java and the jsp is requestpage.jsp.
My requestpage.jsp when submitted goes to mainaction for validation, this is where i am confused.Should my vector be in this file should it be in some file which would be invoked during the load of requestpage.jsp.
Any clarification or example, much appreciated.
Thanks!