"devi", you have previously been warned on multiple occasions regarding adjusting your display name to meet JavaRanch standards. This is not optional, and this is your final warning. Adjust your display name to comply with the required standards prior to your next post.
Your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.
Failure to comply will result in the removal of your account.
Please be sure to use UBB code tags when posting code to the forums. Unformatted code is extremely hard to read and many people that might be able to help you will just move along to posts that are easier to read. Please read this for more information.
You can go back and change your post to add code tags by clicking the .
Can I suggest that you first put that Java code into a plain old Java class, and not in a JSP? The error message suggests that your brackets aren't matched. Since you posted without indentation it's hard to tell which brackets are right and which are wrong.
And also, it's even harder to tell that in a scriptlet with all those <% things cluttering up the code. I can see at least two obvious errors in your code which will cause problems, and there are a couple of un-obvious errors.
So as I said, get the code to compile in an ordinary Java class first. Get it to run there as well, if you can. Only then should you put it into your JSP. And you should only put it into a JSP if you are being forced to use obsolete practices like scriptlets in JSP.