"The method getAttribute(String) from the type HttpSession refers to the missing type Object"
in the following jsp code
<% if(session.getAttribute("user") == null)
{
%>
<a href="login.jsp">Login</a>
<%
}
else
{
%>
<a href="logout.jsp">Logout</a>
<%
}
%>
</div>
</div>
<div id="navBar">
<ul>
<li><a href="search.jsp">Search</a></li>
<%
if(session.getAttribute("user") != null)
{
dao.User user = (dao.User)session.getAttribute("user");
%>
<li><a href="issue.jsp">Issue</a></li>
<li><a href="return.jsp" >Return</a></li>
<%
if(user.getRole().equals("Librarian"))
{
%>
<li><a href="reportshome.jsp">Reports</a></li>
<li><a href="admin.jsp">Administration</a></li>
<%
}
%>
<li>Hi <%=user.getName()%>!</li>
<%
}
%>
what might be the possible reasons behind this error?

New Topic/Question
Reply



MultiQuote



|