You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by red phoenix <ro...@gmail.com> on 2006/12/18 02:25:35 UTC

in struts2

I want to realize <logic:present> in Struts2,when session attribute is
exist,it show "login",if it is not exist,it shows "not login",like follows:
<logic:present name="test">
login
</logic:present>
<logic:notPresent name="test">
not login
</logic:notPresent>

I don't know how to use <logic:present> in struts2,because I don't find
<logic:present> in struts2,anyone could tell me how to do it and give me
some examples?

Thanks.