Derek Hohls wrote:
Hi
Can someone explain what is wrong with the following code:
<labels show="true">
<xsp:attribute name="label"><xsp:expr>fGraphPtLabel</xsp:expr></xsp:attribute>
<xsp:logic>
if ((fGraphPtLabel != null) && (fGraphPtLabel.equals("name"))) { </xsp:logic>
<xsp:attribute name="rotate">14</xsp:attribute>
<xsp:logic>
} else {
</xsp:logic>
<xsp:attribute name="rotate">1</xsp:attribute>
<xsp:logic>
}
</xsp:logic>
Gives an output of:
<labels show="true" label="null" rotate="14" rotate="1">
ie. if the fGraphPtLabel is null, the rotate should be equal to 1 and not 14 as well?!
it seems that your java code is not interpreted as such, and the if condition is not added to the Java code ... At a first glance it looks OK - did you take a look at the generated Java source?
Andreas
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]