<%@ page contentType="text/html; charset=gb2312"%>
<html><head><title></title></head>
<body>
<%
boolean isLog=false;
try{
isLog=((String)session.getAtrribute("isLog")).equals("1");  //报错
}catch(Exception e){
out.println(e.toString());
}
%>
<table width="842" align=center cellpadding=3 cellspacing=1 class=tableborder1>
<tr>     <td width="832" class=tablebody2>
<a href=index.jsp target="_top">首页</a>
<a href=index.jsp target="_top">邮件</a>
<a href=index.jsp target="_top">商品搜索</a>
<a href=index.jsp target="_top">论坛</a>
<%
if(isLog) { 
%>
<a href=logout.jsp target="_top">注销</a>
<%
}
%>
</td></tr><tr>
<td width="832" ></td>
</tr>
</TABLE>
</body></html>
错误如下:
org.apache.jasper.JasperException: Unable to compile class for JSPAn error occurred at line: 7 in the jsp file: /title.jsp
Generated servlet error:
C:\Tomcat5\work\Catalina\localhost\study\org\apache\jsp\title_jsp.java:51: cannot resolve symbol
symbol  : method getAtrribute  (java.lang.String)
location: interface javax.servlet.http.HttpSession
isLog=((String)session.getAtrribute("isLog")).equals("1");
                                      ^
1 error