Bear Bibeault wrote:OK, so at least we now know that it's coming from the JSP.
Most likely reason is that either of stateList or state ends up as null.
By the way, why are you still using outdated scriptlets and scriptlet expressions? You've already separated the logic form the JSP, using the JSTL and EL should be a snap.
Hi there Bear Bibeault ,
Appreciate the reply. I will look into the possibility that you have highlighted. I am also wondering if the setting up of the datasource in my glassfish server could also be a possible cause, but I am able to do a ping sucessfully after setting up the datasource...
Actually these codes are something that I got from a book. I am trying them out on my machine to better understand them, so that I can implement something similar on an application I am developing. Yes, I have heard of JSTL and EL and how they can make life easier. Once I settle this 'nullpointer' issue, I will replace the scriplets with JSTL/EL. Thanks once again.