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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.