struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Keven" <hinb...@yahoo.ca>
Subject Re: How to use logic:present
Date Tue, 10 Sep 2002 20:17:19 GMT
 <% if(request.getSession().getAttribute(User) != null) { %>  is same as
<logic:present name="User" scope="session">, is it right? If it is right,
why the former works, but the latter does not.(I have the line <%@ taglib
uri="/WEB-INF/struts-logic.tld" prefix="logic" %> in my jsp file).

Cn someone give me an example on how to use logic:present? I searched from
web, I can't find a specific example including the usage of logic:present.

Thanks,

Keven


> > From: Keven [mailto:hinbsls@yahoo.ca]
> > Sent: Monday, September 09, 2002 7:41 PM
> > To: Struts Users Mailing List
> > Subject: How to use logic:present
> >
> >
> > Hi, all:
> >
> > I want to use logic:present to check if user has logon.
> >
> > If I use <% if(request.getSession().getAttribute(User) !=
> > null) { %> .....
> > it works fine. but I change it to use logic:present. I changed it to
> > <logic:present name="User" scope="session">...
> > </logic:present>. But it
> > never evaluate <logic:present...> as true. Am I doing
> > somethig wrong here?
> > How to use logic:present.Could some one give me an example?
> >
> > Thanks,
> >
> > Keven
> >
> > ______________________________________________________________
> > ________
> > Post your ad for free now! http://personals.yahoo.ca
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:struts-user-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail:
> > <mailto:struts-user-help@jakarta.apache.org>
> >
> >

______________________________________________________________________ 
Post your ad for free now! http://personals.yahoo.ca

--
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