<s:if test="#session.user == null">
	<div class="login">
		<ul>
			<li id="diagx"><a href="#">On-Demand Login</a></li>
			<li><a href="#">Support</a></li>
		</ul>
		<a href="#" class="join-now-top"><img src="/TitanMen/images/join-now.gif" alt="Join NOW!" /></a>
	</div>
</s:if>
<s:else>
		<div class="login">
			<ul>
				<li><a href="#">My Account</a></li>
				<li><a href="#">Support</a></li>
			</ul>
			<a href="#" class="logout-top"><img src="/TitanMen/images/btn-logout.gif" alt="Log Out!" /></a>
		</div>
</s:else>

 

你可能感兴趣的:(s:if)