Hi All,

 

I have a populated form bean with a property that returns an int indicating a transaction type either(0,1 or 2). In my jsp I would like to display some data depending on the state of this flag. The evaluation is:

 

If(transType == 0 || transType == 1)

else if(transType ==2)

 

I am trying to use the logic:match tag to perform this evaluation by:

 

<logic:match name="transactionForm" property="transType" value="01">

 

Where using the substring evaluation should work if my transType is 0 or 1, but as you might have guessed it is not working and the evaluation fails, but no errors thrown.

 

This is followed by a logic:equal:

 

<logic:equal name="transactionForm" property="transType" value="2">

 

Can I use the logic:match to perform this evaluation, any suggestions?

 

Thanks,

 

Greg Hess

Software Engineer

Wrapped Apps Corporation

275 Michael Cowpland Dr.

Suite 201

Ottawa, Ontario

K2M 2G2

Tel: (613) 591 -7552 ext 230

Fax: (613) 591-0523

1 (877) 388-6742

www.wrappedapps.com

 

Reply via email to