JSP: Unhandled exception from bean method

All builds later than 3290. In JSP if I call method from bean which can throw exception:

Java:

public class MyException extends Exception {}

public class MyClass {
public String getValue() throws MyException {
return "value";
}
}

JSP:

<jsp:useBean id="myBean" scope="request"/>
<%=myBean.getValue()%>

I gen an error: "Unhandled exception: MyException". How it can be solved?

--
Denis Popov

2 comments
Comment actions Permalink

Maxim Shafirov (JetBrains) wrote:

Known issue: http://www.jetbrains.net/jira/browse/IDEADEV-1230


IMHO this is independent from having an error page and at least deserves some control over
the error highlighting. The application server provides its default error page anyway,
even if it isn't nice to look at. But that's OK for a large number of cases.

http://www.jetbrains.net/jira/browse/IDEA-2693

Sascha

0

Please sign in to leave a comment.