Hello,

This may fall under nested EL expressions, which to my understanding are
intentionally disallowed, but I was wondering if there was EL syntax that
would support what I am trying to do, namely, set a URL based on a
conditional, or if I should stick with <s:if>.

Currently I have

<s:if test="mn == #m.name">
    <a href="#landing">${m.dispName}</a>
</s:if>
<s:else>
    <a href="/internal!m?cName=${cName}&mName=${m.name}">${m.dispName}</a>
</s:else>

but would like to do it in a single line, something like

<a href="${mn == m.name ? '#landing' : '/internal!m?cName=' + cName +
'&mName=' + m.name}">${m.dispName}</a>

Is this possible?

Thanks,
~~Scott

Reply via email to