You can go to the generated
servlet ( present in the work directory of
tomcat installation ) and find out what is written on those lines.
Since its your code, you'll find the error quickly. This seems to be something with basic syntax.
You can even open the generated servlet in netBeans as a java Class, and it will assist you in fixing those missing parenthesis' and braces.
But best of all, try to visually find those errors in the JSP.
Better still, follow what Bear said.