Is there a way to get custom messages from HttpServletResponse.sendError()?

Solution Verified - Updated -

Issue

  • Is there a way to get custom messages from HttpServletResponse.sendError()?

We recently upgraded an application from EAP 4.0.5 to EAP 4.3.0.GA_CP09. The application is using response.sendError(int sc, String msg), but under the newer app server, the custom message is not being displayed in the browser.

Environment

  • JBoss Enterprise Application Platform (EAP) 4.3.0.GA_CP09

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content