Agreed..I like to simplify the situation to make it maintainable-
Thanks,
Martin-
- Original Message -
From: "Slattery, Tim - BLS" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Thursday, March 30, 2006 3:52 PM
Subject: RE: [java:Conditional Operators
its a ternary operator e.g. boolean-exp ? value0 : value1
if vIsForm is NOT NULL then vIsForm is "form"
else vIsForm is "Task"
if the result of (aActionMapping.findForward(vWorkForwardName) == null)
then assign vForwardName to vIsForm(from above)
else ass
On 3/30/06, temp temp <[EMAIL PROTECTED]> wrote:
> I did not understand the following code with multiple conditional operators.
> boolean vIsForm=true;
> String vForwardName = (aActionMapping.findForward(vWorkForwardName)
> == null)
> ? (vIsForm) ? "form" : "task"
> I did not understand the following code with multiple
> conditional operators.
> boolean vIsForm=true;
> String vForwardName =
> (aActionMapping.findForward(vWorkForwardName) == null)
> ? (vIsForm) ? "form" : "task"
> : vWorkForwardName;
>
>
4 matches
Mail list logo