David Evans wrote:
As someone else mentioned, the problem could be the scope of your
variable. Another thing to check, are you sure that EL is being
evaluated in your page?
How i can ensure about : does EL evaluate or not ?
What i have done is :
I add the JSTL taglib declaration to my jsp file and i do those coding
that i mentioned.
if the variable is not in my page scope , how it is shown when i use :
<%=sysvar%>
, can you tell me how i should check the variable scope ?
if variable is not in the scope , why the Tag does not return exception .
Thank you
dave
On Fri, 2005-12-16 at 00:30 +0330, Legolas Woodland wrote:
[EMAIL PROTECTED] wrote:
Hi
Don't use this. Use the jstl tags instead. In this case <c:if
test="${sysvar=='loop'}">....</c:if>
Thank you very much.
I think my problem is wired ,
I used
<c:if test="${sysvar=='loop'}"> Do this Tags when sysvar is equal to loop</c:if>
and in some next lines i did :
<c:if test="${sysvar!='loop'}"> Do this Tags when sysvar is NOT equal to
loop</c:if>
wonderful thing is that both of these blocks runs and the result is rendered in
html page in the browser.
Do i used The syntax correctly ?
Am i missing something ?
If you read the tag doc's you will see that you are encouraged to switch to the
jstl tags in place og the struts tags. In so doing, use the struts-el tag
librarys
Hermod
-----Original Message-----
From: Legolas Woodland [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 15, 2005 1:44 PM
To: Struts Users Mailing List
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that DnB NOR cannot
accept any payment orders or other legally binding correspondence with
customers as a part of an email.
This email message has been virus checked by the virus programs used
in the DnB NOR Group.
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]