Hi,
just have a look at the extension of the file name .It may be a text file instead of JSP file,So while saving te file ,enter the file name in double quotes ie "result.jsp" in the save as dialog box.Restart the Tomcat ,i hope now you will get the correct output.
Regards,
Magesh.s
SCJP-98%
SCWCD-Inprogress