You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Alberto Marquÿffffe9s <al...@yahoo.es> on 2006/03/15 15:45:29 UTC

help logic:equals

Y problem is the following one I want to cross 2 lists
using logic:iterate these 2 lists are of objectos VO.
These 2 objectos NovedadesVO and TemasVO have in
common a property (subject) when it is the same chain
in both I want to print a message I have used
logic:equal but it does not work. The example is: 


<logic:iterate id="lista" name="listaNovedadesVO"
type="NovedadesVO">
    <tr>     
  
  <td  class="text">
     
     <logic:iterate id="listaT" name="listaTemas"
type="TemasVO" >
    
      <logic:equal name="lista" property="tema" 
value="id_tema" >
         PRINT MENSAJE
      </logic:equal>
     </logic:iterate>   
  </td>
  
  </tr>
  
 </logic:iterate>

as it would be the correct syntax of the logic:equal
label?
 



Alberto   Marqu&eacute;s
  www.albertomarques.tk
  tlf.- 655224473

		
---------------------------------

LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com

Re: help logic:equals

Posted by Antonio Petrelli <br...@tariffenet.it>.
Alberto Marquÿffffe9s ha scritto:
>       <logic:equal name="lista" property="tema" 
> value="id_tema" >
>          PRINT MENSAJE
>       </logic:equal>
>   
You cannot use <logic:equal> this way, value must be a constant.
You can use JSTL <c:if>
http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/index.html
Ciao
Antonio

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