Why JSP pages running in JBoss show NULL values instead of empty strings as it does in WebLogic or WebSphere?

Solution Verified - Updated -

Issue

  • All of the JSPs in the application have JSP scriptlets and Expressions and it is currently deployed on Weblogic application server. The values from session are evaluated at JSP level using expressions.
  • The values are displayed as "null" in the text box instead of "" strings, However, when deployed on Weblogic/Websphere application server there is a configuration xml file (weblogic.xml) with parameters "<print-nulls>false</print-nulls>" set.

  • In order to check for non null values in a very large application (containing around 1000 JSP files), it is very difficult to check and not to evaluate for null values.

  • Is there a WebLogic similar feature in the weblogic.xml ["<print-nulls>false</print-nulls>"] available in JBoss.

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 5.x
    • 6.x

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.