I have not seen the if-else in Struts Tag.

<logic:equal   property="tableCounter" value="1">
tableCounter = 2;
</logic:equal>

<logic:notEqual   property="tableCounter" value="1">
tableCounter = 1;
</logic:notEqual>


Thanks
Nazeer


-----Original Message-----
From: Clark Kent [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 18, 2003 1:17 PM
To: usergroup
Subject: Is there a way to set variable using Struts?

I have the following scriptlet code :

if(tableCounter == 1){

     tableCounter = 2;

} else {

tableCounter = 1;

}

How do I achieve the above code using Struts tags (without using JSTL)?

Thanks,

CK



---------------------------------
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing

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

Reply via email to