You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Chawla, Yogesh" <yo...@hpsglobal.com> on 2003/10/14 11:07:58 UTC

RE: LOGIC:EQUAL TAG COMPARISON. Apache Struts Online Doc Referenc e No t Clear

That implies that logic:equal tag cannot be nested inside a logic:iterate.
That means I cannot use the following logic..

<logic:equal name="aUpdateForm" property="viewChildRecord"
value="true">
		
		<logic:iterate id = "childDetail" name="coll" >	
			<logic:equal name="childDetail"
parameter="rateClassTCSGRTE" value="<%=ss%>"/>		

Seems to be a poor demonstartion of Struts capability to me !
Now I have to use an if, else loop inside my jsp...GREAT !! 

Thanx..


-----Original Message-----
From: Otto, Frank [mailto:otto@delta-barth.de]
Sent: Tuesday, October 14, 2003 2:32 PM
To: 'Struts Users Mailing List'
Subject: AW: LOGIC:EQUAL TAG COMPARISON. Apache Struts Online Doc
Referenc e No t Clear


This line means:

The value to wich you compare must be a constant value. Only the value of
the property is dynamically.

I think you must use the property-attribute instead the parameter-attribute.



-----Ursprüngliche Nachricht-----
Von: Chawla, Yogesh [mailto:yogesh.chawla@hpsglobal.com]
Gesendet: Dienstag, 14. Oktober 2003 10:53
An: 'Struts Users Mailing List'
Betreff: LOGIC:EQUAL TAG COMPARISON. Apache Struts Online Doc Reference
No t Clear
Wichtigkeit: Hoch


What does this line in Struts doc mean for logic:equal tag 

Compares the variable specified by one of the selector attributes against
the specified constant value. The nested body content of this tag is
evaluated if the variable and value are equal. 

"constant value" does it imply that logic:equal does not work
dynamically..Can this tag be used nested inside a logic:iterate tag ?

Any ideas anybody or has somebody faced a similar problem..

Regards.

-----Original Message-----
From: Chawla, Yogesh [mailto:yogesh.chawla@hpsglobal.com]
Sent: Tuesday, October 14, 2003 1:55 PM
To: 'Struts Users Mailing List'
Subject: RE: URGENT :: LOGIC:EQUAL works only with one constant Value ??
N ot R epeat Iterations ????


I am specifying the complete values.  The e.g I had written was simplistic
for getitng some help!

The code is something like this..

		<logic:equal name="aUpdateForm" property="viewChildRecord"
value="true">
		
		<logic:iterate id = "childDetail" name="coll" >	
			<logic:equal name="childDetail"
parameter="rateClassTCSGRTE" value="<%=ss%>"/>		
Any ideas..

regards.

-----Original Message-----
From: Kwok Peng Tuck [mailto:pengtuck@makmal.net]
Sent: Tuesday, October 14, 2003 1:18 PM
To: Struts Users Mailing List
Subject: Re: URGENT :: LOGIC:EQUAL works only with one constant Value ??
Not R epeat Iterations ????


Sure it works, but you don't specify the property of the variable, name 
of the variable to be compared to.
So that's why it doesn't evaulate to equal.
Here, take a peek :
http://jakarta.apache.org/struts/userGuide/struts-logic.html#equal

Chawla, Yogesh wrote:

>Hello,
>
>I have a repeat nested tag logic like this :
>
>The Struts Documentation on ligoc tags mentions this for the logic:equal
>tag. Why is it that it can only be checked against one contant value ? 
>
>equal - Evaluate the nested body content of this tag if the requested
>variable is equal to the specified value. 
>Compares the variable specified by one of the selector attributes against
>the specified constant value. The nested body content of this tag is
>evaluated if the variable and value are equal. 
>
>Can I use something like this :
>
><logic:iterate id="resultCounter" > 
>	<logic:equal value="changing value in each iterate tag based on id
>resultCounter">
>		<logic:iterate "if resultCounter matches the value, then get
>the results">
>			<html:text name="resultCounter"
>property="value1Text">
>		</logic:iterate>
>	</logic:equal>
></logic:iterate>
>	
>This is not working even if conditions are not matching. It prints the
>html:text even if equal is not matching !!
>
>Any inputs would be appreciated..
>
>Cheers :)
>DISCLAIMER: The information in this message is confidential and may be
>legally privileged. It is intended solely for the addressee.  Access to
this
>message by anyone else is unauthorised.  If you are not the intended
>recipient, any disclosure, copying, or distribution of the message, or any
>action or omission taken by you in reliance on it, is prohibited and may be
>unlawful.  Please immediately contact the sender if you have received this
>message in error. Thank you.
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
DISCLAIMER: The information in this message is confidential and may be
legally privileged. It is intended solely for the addressee.  Access to this
message by anyone else is unauthorised.  If you are not the intended
recipient, any disclosure, copying, or distribution of the message, or any
action or omission taken by you in reliance on it, is prohibited and may be
unlawful.  Please immediately contact the sender if you have received this
message in error. Thank you.

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
DISCLAIMER: The information in this message is confidential and may be
legally privileged. It is intended solely for the addressee.  Access to this
message by anyone else is unauthorised.  If you are not the intended
recipient, any disclosure, copying, or distribution of the message, or any
action or omission taken by you in reliance on it, is prohibited and may be
unlawful.  Please immediately contact the sender if you have received this
message in error. Thank you.

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

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
DISCLAIMER: The information in this message is confidential and may be
legally privileged. It is intended solely for the addressee.  Access to this
message by anyone else is unauthorised.  If you are not the intended
recipient, any disclosure, copying, or distribution of the message, or any
action or omission taken by you in reliance on it, is prohibited and may be
unlawful.  Please immediately contact the sender if you have received this
message in error. Thank you.

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