Re: Sample JSP using Error and Exception Values without exception.message

Lukasz Lenart <[email protected]> Mon, 2 Jun 2025 14:57:53 +0200
Newsgroups gmane.comp.jakarta.struts.user
Message-ID <CAMopvkOtRxyryiz0ejdO2-w0QN1tD2oibuUEfUC1BjEhXuFd2Q@mail.gmail.com>
pt., 30 maj 2025 o 19:45 Ute Kaiser <[email protected]> napisał(a):
> https://struts.apache.org/core-developers/exception-configuration
>
> I tried the "Sample JSP using Error and Exception Values"
> but <s:property value="%{exception.message}"/> was not displayed.
>
> Some error in my config, or outdated?

There is a bug in the doc, use <s:property value="exception"/>
https://github.com/apache/struts-examples/blob/main/exception-handling/src/main/webapp/error.jsp#L16-L17

BTW. %{...} force evaluation is not needed


Cheers
Łukasz