• Post Reply Bookmark Topic Watch Topic
  • New Topic

c:catch problem ?  RSS feed

 
hasan khan
Ranch Hand
Posts: 223
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator



i am getting translation time error "unreachable statement" when i explicitly throws any exception in <c:catch>

but when i use new FileInputStream("jstl_core.jsp");
then the exception is caught in <c:catch>

how this is possible. it should also catch my explcit thrown exception
 
Vishwa Kumba
Ranch Hand
Posts: 1066
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The best thing to do is to have a look at the translated Servlet code.

Did you try this:

if (true)
throw new IOException("hello");
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!