Title: nested logic:present tags do not short-circuit

Hi-

Am I correct to say that in the case of nested <logic:present> tags, the false evaluation of the first one will not "short-circuit", or prevent the evaluation of, the second one?

For example, in the case that a Form has a Bean A, which itself has a Bean B, and when B is null, the following:
  <logic:present name="A" property="B">
    <logic:present name="A" property="B.property">
      some jsp/html
    </logic:present>
  </logic:present>

will still fail because the second logic tag is evaluated and the null-pointer is dereferenced.

If this is correct, is this by design? Is this a bug? Is there a way to accomplish what I am trying to do here?

Any thoughts appreciated.

Thanks,

S-

Reply via email to