Just guessing, but the reason the Vectors are null is probably because the action that 
is being called is configured as request scope and not session in the Struts 
configuration file. Therefore, after the HTML page is drawn (using the Vectors to 
populate the drop-down boxes), the ActionForm is recycled because the request is 
complete. If you need data like this to stick around and not have to get it again from 
your database or backend, then you either going to have to make the action session 
scope, or hide the data in the page. Take a look at the ActionMapping defined for the 
action being called and see if it doesn't have something like scope="request". 
Actually, I think the default is request, so if you don't have a line scope="request" 
in the mapping, it will default to request scope.

You might try making this scope="session". Check out the JavaDoc on the ActionMapping 
class for more information.

Chuck

p.s. Is anyone really using the Vector class anymore? Why aren't you using 
List/ArrayList? Just curious.
--
Sent via jApache.org

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to