Description
Repro:
- Add the following to a page flow:
@Jpf.Catch(type=IllegalStateException.class, path="error.jsp", message="${pageFlow.URI}", messageKey="foo")
- Add a message bundle, too:
@Jpf.MessageBundle(bundlePath="myMessages")
- In /WEB-INF/src/myMessages.properties, add the following line:
foo=whoops, shouldn't see this
- In error.jsp, add the following tag:
<netui:error key="foo"/>
- Hit an action that throws IllegalStateException.
Expected: see the page flow's URI displayed in error.jsp
Actual: see "whoops, shouldn't see this"
The message (the page flow's URI) should be stored under key "foo". The actual message under key "foo" should only be used if there is no 'message' attribute.