File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exceptions in JSP

 
chikki singh chotala
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is runtime exception and compile time exception in jsp
 
Senthil B Kumar
Ranch Hand
Posts: 160
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When the user request for a JSP, it gets converted to a Servlet and this servlet is compilted and executed to give the output.

When your JSP has any syntax errors like the standard tag names are wrongly mentioned , or misspelling of keywords..etc.. , when compiling the converted Servlet, the compiler will give the compilation error.

but if its a kinda logical error, say you have instantiated an Object and at some situation it becomes nullyfied and you are trying to access its method now. this situation doesnt happens when you are compiling the code, it happens only when the code is executed, so these kind of errors are called RunTime exceptions, ie exceptions/errors occuring during runtime.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic