R
RFleming
I am fairly new to java web applications. I am trying to port over a
regular java project and I am running into a problem I can not seem to
find a good answer to. I have a database and some combo boxes. If
you select one dropdownlist box, it builds a couple of arraylists that
are private class variables, and also builds the next dropdownlist
box. When I next press on the second dropdownlist box, the page init
gets called (why I am not sure), and apparently all the controls on
the page keep thier values, but all my class variables get wiped out.
This causes the code in my second dropdownlist box to fail because it
is expecting data to be in those class variables.
Searches on the net suggest caching, or using a bean to store data. I
have not found an answer yet that I truly feel reflects my situation,
so I am hoping someone can provide me some assistance.
I am using Netbeans 6.1, and Tomcat 6.0 for the server.
Thanks For Your Time
Ryan
regular java project and I am running into a problem I can not seem to
find a good answer to. I have a database and some combo boxes. If
you select one dropdownlist box, it builds a couple of arraylists that
are private class variables, and also builds the next dropdownlist
box. When I next press on the second dropdownlist box, the page init
gets called (why I am not sure), and apparently all the controls on
the page keep thier values, but all my class variables get wiped out.
This causes the code in my second dropdownlist box to fail because it
is expecting data to be in those class variables.
Searches on the net suggest caching, or using a bean to store data. I
have not found an answer yet that I truly feel reflects my situation,
so I am hoping someone can provide me some assistance.
I am using Netbeans 6.1, and Tomcat 6.0 for the server.
Thanks For Your Time
Ryan