Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to catch compile-time exceptions w/out configuring web.xml  RSS feed

 
Bill Brasskey
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any way to catch compile-time exceptions programmatically, without
configuring an error page in web.xml ?

regards,
-Brasskey
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36396
454
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Brasskey,
No. By definition, a compiler error breaks the code. That makes adding any code to detect compiler errors impossible.

This isn't a big problem though, since you will have tested your JSPs for errors before sending them to production.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!