PS.网友不用看 这个是我存放在这里给自己看的
<%@ page import="com.san30.common.db.*,com.san30.comInterface.*,
java.sql.Connection,
java.util.ArrayList,
java.util.HashMap,
com.san30.common.exception.*,
com.san30.common.tools.StrTools,
org.apache.log4j.*" %>
<%@ page contentType="text/html; charset=gb2312" %>
<%!
Logger logger=Logger.getLogger("indexframe.jsp");
%>
<HTML><HEAD><TITLE>COMMON包测试网站主页</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<META HTTP-EQUIV="Pragma" content="No-cache">
<META HTTP-EQUIV="Cache-Control" content="no-cache">
<META HTTP-EQUIV="Expires" content=0>
<link href="<%=request.getContextPath()%>/css/style.css" type=text/css rel=stylesheet>
<script language="javascript">
function init(){
top.window.status=" ";
top.window.defaultStatus=" ";
}
window.οnlοad=init;
window.οnmοuseοver=init
</script>
</HEAD>
<body>
COMMON包测试网站主页<br>
<%
// 取当前用户信息对象
CurrentUserAccount cua = InterfaceHelper.getLoginInstance().getLoginer(request);
%>
当前用户是:<%=cua.getUserName()%><br>
当前用户是否有“right1”权限:<%=cua.hasRight(null, "right1")%><br>
当前用户是否有“right2”权限:<%=cua.hasRight(null, "right2")%>
</body>
</HTML>