1. 程式人生 > >Struts標簽判斷當前用戶是否存在

Struts標簽判斷當前用戶是否存在

glib charset web 用戶 logs lib isempty Coding ava

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>


<s:if test="null==#session.weblogin||#session.weblogin.isEmpty()"> <a id="head" href="login.jsp"></a> </s:if> <s:else
> <a id="head" href="ucenter.do"></a> </s:else>

Struts標簽判斷當前用戶是否存在