Rahul Nair wrote:You may validate the form using java script, so that the user will not provide the empty string in the Search Box.
Bear Bibeault wrote:Welcome to the Ranch.
For me, step 1 would be to refactor the JSP to include no Java scriptlets. Scriptlets have been discredited since the introduction of JSP 2.0 over 8 years ago.
You might want to read this article for some ideas on modern web application structure.
As it stands, you've posted a lot of code without any indication of where the error is occurring. Does not the error message include information that helps to narrow the location of the problem down? You might want to at least include that in your post.
Even better would be to narrow down the scope of the code you post to that which is causing the issue.