<% 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:[EMAIL PROTECTED]] > > 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:[EMAIL PROTECTED]> > > For additional commands, e-mail: > > <mailto:[EMAIL PROTECTED]> > > > > ______________________________________________________________________ Post your ad for free now! http://personals.yahoo.ca -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>