Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

<logic:present> in struts2

red phoenix

2006-12-17


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.
©2008 junlu.com - Jax Systems, LLC, U.S.A.