• Post Reply Bookmark Topic Watch Topic
  • New Topic

c:catch problem ?

 
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");
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!