null « J2EE « JSP-Servlet Q&A

1. How do you force Weblogic to print "null" in jsp files, rather than empty string "", for variables with null as the value?

Suppose I have JS code inside a jsp files, such as this:

String test = null;

var test = <%=test%>;

With Tomcat and Websphere the resulting JS will be:

var test = null;

However, in Weblogic ...

2. MDB MessageID coming as Null