Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • 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");
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic