SyntaxFix
Write A Post
Hire A Developer
Questions
Since you already have sent some data,
System.out.println("going to demo.jsp");
you won't be able to send a redirect.