struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mannem, Taati" <Taati.Man...@AIG.com>
Subject RE: Comparing Null using Logic:Equal
Date Thu, 09 May 2002 17:58:01 GMT
Jim,

I closed it properly in teh code but missed whenI was typing here!
Regards,
Taati
> -----Original Message-----
> From:	James Mitchell [SMTP:jmitchtx@telocity.com]
> Sent:	Thursday, May 09, 2002 2:00 PM
> To:	Struts Users Mailing List
> Subject:	RE: Comparing Null using Logic:Equal
> 
> You forgot to close your tag...see below
> 
> JM
> 
> > -----Original Message-----
> > From: Mannem, Taati [mailto:Taati.Mannem@AIG.com]
> > Sent: Thursday, May 09, 2002 1:50 PM
> > To: Struts Users Mailing List
> > Cc: LMaciel@Scient.com
> > Subject: RE: Comparing Null using Logic:Equal
> >
> >
> > Leo,
> > 	You were clear but still it doesn't work.
> > I will paste the code here. This is from the registration.jsp of the
> > struts-example
> >
> > <logic:iterate id="subscription" name="user" property="subscriptions">
> > <logic:notPresent name="subscription" property="subscriptions">
> > <tr><td>Please do whatever Taati wants
> > </td>
> > </tr>
> >
> > <logic:notPresent>   <--here
> > <logic:present name="subscription" property="subscriptions">
> >   <tr>
> >     <td align="left">
> >       <bean:write name="subscription" property="host" filter="true"/>
> >     </td>
> >     <td align="left">
> >       <bean:write name="subscription" property="username"
> filter="true"/>
> >     </td>
> >     <td align="center">
> >       <bean:write name="subscription" property="type" filter="true"/>
> >     </td>
> > ...
> > ...
> > ...
> > ..
> >
> > <logic:present>
> >
> > but the result is I wont do whatever Taati wants!;)
> > It is just the same..
> > May I know where I am goofing up!
> >
> > Regards,
> > Taati
> > > -----Original Message-----
> > > From:	Leonardo Maciel [SMTP:LMaciel@Scient.com]
> > > Sent:	Thursday, May 09, 2002 1:38 PM
> > > To:	'Struts Users Mailing List'
> > > Subject:	RE: Comparing Null using Logic:Equal
> > >
> > > so use both
> > >
> > > <logic:present ... >
> > >  display column
> > > </logic:present>
> > > <logic:notPresent ... >
> > >  display some other data
> > > </logic:notPresent>
> > >
> > > hope I am clear!!
> > >
> > >
> > >
> > > -----Original Message-----
> > > From: Mannem, Taati [mailto:Taati.Mannem@AIG.com]
> > > Sent: Thursday, May 09, 2002 1:37 PM
> > > To: Struts Users Mailing List
> > > Subject: RE: Comparing Null using Logic:Equal
> > >
> > >
> > > Leo and Jim,
> > > 	Thanks a lot it works but not exactly the way my requirement
> > > demands.
> > > I will explain to you the scenario.Take the struts-examples for
> > instance.
> > > When we click on the edit registration we get a table with the heading
> > > host,autoconnect,etc.. Now if the subscriptions bean is null it will
> not
> > > display the column, that is the results array in the bean user
> > is returned
> > > null for the first time and hence the table rows are not printed. When
> I
> > > use
> > > the logic:present tag it works only if I go to subscription and
> > dont enter
> > > anything and come back. Actually my requirement is to show some
> > other data
> > > when the user clicks on the reigistration and there is no data
> > to be shown
> > > in the table.Hope i am clear?????
> > >
> > > Regards,
> > > Taati
> > > > -----Original Message-----
> > > > From:	James Mitchell [SMTP:jmitchtx@telocity.com]
> > > > Sent:	Thursday, May 09, 2002 1:31 PM
> > > > To:	Struts Users Mailing List
> > > > Subject:	RE: Comparing Null using Logic:Equal
> > > >
> > > > See logic:present
> > > >
> > > > JM
> > > >
> > > > > -----Original Message-----
> > > > > From: Mannem, Taati [mailto:Taati.Mannem@AIG.com]
> > > > > Sent: Thursday, May 09, 2002 1:25 PM
> > > > > To: Struts Users Mailing List
> > > > > Subject: Comparing Null using Logic:Equal
> > > > >
> > > > >
> > > > > Guys,
> > > > > 	Thanks for the help on the previous post. Can
> > anyone tell me how do
> > > > > I compare a value "null" using logic equal or someother tag.
> > > > > This is the requirement..
> > > > > If the value returned by a getter method is null in iterator tag
> > > > > then I have
> > > > > got to display something else something else..
> > > > >
> > > > > Thanks a lot in advance!
> > > > > Cheerio,
> > > > > Taati
> > > > >
> > > > >
> > > > > --
> > > > > To unsubscribe, e-mail:
> > > > > <mailto:struts-user-unsubscribe@jakarta.apache.org>
> > > > > For additional commands, e-mail:
> > > > > <mailto:struts-user-help@jakarta.apache.org>
> > > > >
> > > > >
> > > >
> > > > --
> > > > To unsubscribe, e-mail:
> > > > <mailto:struts-user-unsubscribe@jakarta.apache.org>
> > > > For additional commands, e-mail:
> > > > <mailto:struts-user-help@jakarta.apache.org>
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > <mailto:struts-user-unsubscribe@jakarta.apache.org>
> > > For additional commands, e-mail:
> > > <mailto:struts-user-help@jakarta.apache.org>
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > <mailto:struts-user-unsubscribe@jakarta.apache.org>
> > > For additional commands, e-mail:
> > > <mailto:struts-user-help@jakarta.apache.org>
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:struts-user-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail:
> > <mailto:struts-user-help@jakarta.apache.org>
> >
> >
> 
> 
> --
> To unsubscribe, e-mail:
> <mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:struts-user-help@jakarta.apache.org>

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


Mime
View raw message