struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Caroline Holanda <spencercarol...@yahoo.com>
Subject RE: logic:Present tag
Date Fri, 23 May 2003 13:27:15 GMT
Gandle,

 Thanks again for the reply, but I guess your code
tests if a property of a collection is not null. What
I need is really test if the collection object, that
is a DynaActionForm property, is null. Following is
the code where I use this:
 
  <html:select property="supplyList" multiple="true"
size="5" styleClass="Campos" style="width:150">
    <logic:present property="supplyColl" >
       <html:optionsCollection property="supplyColl" 
value="value" label="label"/>  
    </logic:present> 
  </html:select> 

  supplyColl is a collection of LabelValueBean.
 
  Caroline

 --- "Gandle, Panchasheel" <pgandle@rwjf.org>
escreveu: > <logic:present property="propertyName"
> scope="request">.
> this would be for collection
> 
> I think it should be 
> <logic:present name="coll" scope="request">
>   <logic:iterate id="idColl" name="coll"
> scope="request">
>     <!-- for property -->
>     <logic:present name="idColl"
> property="propertyName">
>        <!-- do your things here ...-->
>     </logic:present>
>   </logic:iterate>
> </logic:present>
> 
> Thanks
> Panchasheel
> 
> 
> -----Original Message-----
> From: Caroline Holanda
> [mailto:spencercaroline@yahoo.com]
> Sent: Friday, May 23, 2003 8:54 AM
> To: Struts Users Mailing List
> Subject: RE: logic:Present tag
> 
> 
> I'm sorry, I guess I didn't use the write words. I
> want to verify if the properties is not null, and
> execute the tag body only if the collection property
> is not null. Isn't it the case to use <logic:present
> property="propertyName" scope="request">.
> 
>   Thanks for any help.
>   Caroline Holanda
> 
>  --- "Gandle, Panchasheel" <pgandle@rwjf.org>
> escreveu: > you should probably use 
> > <logic:notPresent
> > 
> > 
> > Thanks
> > Panchasheel
> > 609 627 7561
> > 
> > 
> > -----Original Message-----
> > From: Caroline Holanda
> > [mailto:spencercaroline@yahoo.com]
> > Sent: Thursday, May 22, 2003 5:07 PM
> > To: 'Struts Users Mailing List'
> > Subject: logic:Present tag
> > 
> > 
> > Hi List!
> > 
> >   How can I test if a form property, like a
> > collection, is null with the logic:present tag?
> > 
> >   I tried both 
> > <logic:present property="propertyName"
> > scope="request"> and <logic:present
> name="formName"
> > property="propertyName" scope="request">, but it
> > didn't work.
> > 
> >   I can't understand the present tag well. Its
> > description say that name attribute correspond to
> a
> > JSP bean name, but I have an example application
> > that
> > uses this tag setting the name to an attribute
> name
> > that can be set to the request object and it works
> > well.
> > 
> >   Thanks.
> >   Caroline
> > 
> > =====
> > ******************************
> > Cuide das pessoas que vc ama! 
> > Elas são presentes de Deus!
> > 
> >
>
_______________________________________________________________________
> > Yahoo! Mail
> > O melhor e-mail gratuito da internet: 6MB de
> espaço,
> > antivírus, acesso POP3,
> > filtro contra spam. 
> > http://br.mail.yahoo.com/
> > 
> >
>
---------------------------------------------------------------------
> > 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
> >  
> 
> =====
> ******************************
> Cuide das pessoas que vc ama! 
> Elas são presentes de Deus!
> 
>
_______________________________________________________________________
> Yahoo! Mail
> O melhor e-mail gratuito da internet: 6MB de espaço,
> antivírus, acesso POP3,
> filtro contra spam. 
> http://br.mail.yahoo.com/
> 
>
---------------------------------------------------------------------
> 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
>  

=====
******************************
Cuide das pessoas que vc ama! 
Elas são presentes de Deus!

_______________________________________________________________________
Yahoo! Mail
O melhor e-mail gratuito da internet: 6MB de espaço, antivírus, acesso POP3, filtro contra
spam. 
http://br.mail.yahoo.com/

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


Mime
View raw message