Greetings,
I have encountered a problem that looks like a bug the jrun:if custom tag.
The problem occurs when displaying a null-value expression within the tag.
Null expressions can be displayed OUTSIDE of a jrun:if tag; and non-null
expressions can be displayed inside of the tag. However, displaying the a
null-value expression within the custom tag results in a
NullPointerException.
I am running JRun 3.0 on WinNT.
An example below illustrates. I suspect this is a bug. Has anyone else run
into this?
Brian
--------
<% String foo = null; %>
<% boolean flag = true; %>
<!-- WORKS: displaying a null expression -->
<%= foo %>
<!-- WORKS: displaying a non-null expression within a jrun:if tag -->
<jrun:if expr='<%= flag %>'>
<%= (foo == null ? "" : foo) %>
</jrun:if>
<!-- BROKEN: displaying a null expression within a jrun:if tag -->
<jrun:if expr='<%= flag %>'>
<%= foo %>
</jrun:if>
------------------------------------------------------------------------------
Archives: http://www.egroups.com/group/jrun-interest/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the
body.