When posting code, please make sure to UseCodeTags. It makes your code more readable.
As to answer your question, there is a null pointer exception on line 28. The only variable involved in that line is con. So it means con is null or not initialized prior to line 28.
Also it is a bad practice to add scriptlet code to JSP page. Use a servlet for the database part instead.