help in understand how to reference my objects in my view

S Ahmed <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <CAG2rwuNbPFQk6NMjr0ZKmDsDTybk8SkEV2d4tJHvPio+jtDk+g@mail.gmail.com>
I have a UserSession object that I add into my model like:


UserSession userSession = get....

ModelAndView mav = new ModelAndView("..");


mav.add("session", userSession);

return mav;

Now in my index.ftl page I want to do this:

if userSession.isLoggedIn
<p>....
</p>
end if

How do I do that using freemarker?

I tried this:

<#if session.isSignedIn>
</#if>

But I get an error saying that session.isSignedIn has to return true/false.
 Is does return true/false, so what is wrong?

thanks!

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2

_______________________________________________
FreeMarker-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freemarker-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.