You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Legolas Woodland <le...@gmail.com> on 2005/12/15 13:43:41 UTC

Problem with using Logic:equla tag.

Hi
I have a un-natural problem here

Im trying to use :
[code]

<logic:equal name="sysvar" value="loop">

    <td >
......
    </td>
</logic:equal>

[/code]

it never enter the above block.
even i tried and showed  sysvar by using the following code line in the 
browser
[code]
<%=sysvar%>
[/code]
I can see that its value
is loop bu there is no luck to enter the above block.
No my question is :
while the value that is inside sysvar is equal to what Im checking with 
Struts logic tag , why it never enter the block ?
is it an encoding problem ?

can some one please tell me how to write that conditional block in JSTL ?
maybe JSTL Do it correctly.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Problem with using Logic:equla tag.

Posted by Legolas Woodland <le...@gmail.com>.
Martin Gainty wrote:
> Legolas-
> what is the scope for variable sysvar?
variable is in scope , i think it is in page scope .
this variable defined in another jsp file inside some scriptlet.
I think , there is no problem about variable scope because i can view 
the content of variable by using

<%=sysvar%>

Thank you for answering my question.
> Anyone else?
> Martin-
> ----- Original Message ----- From: "Legolas Woodland" 
> <le...@gmail.com>
> To: "Struts Users Mailing List" <us...@struts.apache.org>
> Sent: Thursday, December 15, 2005 7:43 AM
> Subject: Problem with using Logic:equla tag.
>
>
>> Hi
>> I have a un-natural problem here
>>
>> Im trying to use :
>> [code]
>>
>> <logic:equal name="sysvar" value="loop">
>>
>>    <td >
>> ......
>>    </td>
>> </logic:equal>
>>
>> [/code]
>>
>> it never enter the above block.
>> even i tried and showed  sysvar by using the following code line in 
>> the browser
>> [code]
>> <%=sysvar%>
>> [/code]
>> I can see that its value
>> is loop bu there is no luck to enter the above block.
>> No my question is :
>> while the value that is inside sysvar is equal to what Im checking 
>> with Struts logic tag , why it never enter the block ?
>> is it an encoding problem ?
>>
>> can some one please tell me how to write that conditional block in 
>> JSTL ?
>> maybe JSTL Do it correctly.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Problem with using Logic:equla tag.

Posted by Martin Gainty <mg...@hotmail.com>.
Legolas-
what is the scope for variable sysvar?
Anyone else?
Martin-
----- Original Message ----- 
From: "Legolas Woodland" <le...@gmail.com>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Sent: Thursday, December 15, 2005 7:43 AM
Subject: Problem with using Logic:equla tag.


> Hi
> I have a un-natural problem here
> 
> Im trying to use :
> [code]
> 
> <logic:equal name="sysvar" value="loop">
> 
>    <td >
> ......
>    </td>
> </logic:equal>
> 
> [/code]
> 
> it never enter the above block.
> even i tried and showed  sysvar by using the following code line in the 
> browser
> [code]
> <%=sysvar%>
> [/code]
> I can see that its value
> is loop bu there is no luck to enter the above block.
> No my question is :
> while the value that is inside sysvar is equal to what Im checking with 
> Struts logic tag , why it never enter the block ?
> is it an encoding problem ?
> 
> can some one please tell me how to write that conditional block in JSTL ?
> maybe JSTL Do it correctly.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org