[EMAIL PROTECTED] wrote:

I am new to struts. I have a question regarding logic tag.
I was replacing those if.... else if ..... end if stuffs with logic tags on jsp pages.
For example:

if  num==1 {// condition 1
block 1;
}else if num==2 {// condition 2
block 2;
}

Usually if condition 1 is true, condition 2 does not be evaluated. Now if I use 
<logic:equal> tag as follows:
<logic:equal ........> (condition 1)
  block 1;
</logic:equal.....>
<logic:notEqual ....> (condition 2)
block 2;
</logic:notEqual>

It seems that condition 2 is always evaluated no matter what the result of condition 1 is. It would be a performance penalty if this is the case. Am I wrong?

Thanks for help,

Kathy


Thats because of the jsp custom tag specification, that does not allow data sharing between blocks.


Sven

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to