Problem with Combo
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Mike_Parker
Posted On:   Thursday, August 21, 2003 04:43 PM

Hi there. I am using a combo box on a form and it seems that the validation procedure is causing a "Cannot find bean AllDrivers" exception. If the form has all fields filled correctly, and all validation passes, it works fine but if anything at all fails the validation I get a Servlet exception. My combo code is: > AllDrivers is an ArrayList put into the request: ArrayList allDrivers = tour.allDrivers(); request.setAttribute("AllDrivers",allDrivers); Any ideas? Thanks    More>>

Hi there.

I am using a combo box on a form and it seems that the validation procedure is causing a "Cannot find bean AllDrivers" exception.


If the form has all fields filled correctly, and all validation passes, it works fine but if anything at all fails the validation I get a Servlet exception.
My combo code is:





>

AllDrivers is an ArrayList put into the request:


ArrayList allDrivers = tour.allDrivers();

request.setAttribute("AllDrivers",allDrivers);



Any ideas? Thanks

   <<Less

Re: Problem with Combo

Posted By:   Kirschmann_Yves  
Posted On:   Friday, August 22, 2003 01:09 AM

Hi!

Try to put the object in session instead of request, and if values are always the same, store them in servletContext when application is started.
About | Sitemap | Contact