Having trouble getting my AttachmentServlet.java and FilterServelt.java to compile
the following is the code (for which the error applies) then the error for each.
AttachmentServlet.java
HttpSession session = request.getSession();
ServletOutputStream out = response.getOutputStream();
int msgNum = Integer.parseInt(request.getParameter("message"));
int partNum = Integer.parseInt(request.getParameter("part"));
MailUserBean mailuser = (MailUserBean)session.getAttribute("mailuser");
cannot find symbol
symbol : method getAttribute(java.lang.String)
location: interface javax.servlet.http.HttpSession
inconvertible types
found : javax.servlet.http.HttpSession.getAttribute
required: demo.MailUserBean
FilterServlet.java
HttpSession session = request.getSession();
MailUserBean mailuser = (MailUserBean)session.getAttribute("mailuser");
String servletPath = request.getServletPath();
servletPath = servletPath.concat(".jsp");
cannot find symbol
symbol : method getAttribute(java.lang.String)
location: interface javax.servlet.http.HttpSession
inconvertible types
found : javax.servlet.http.HttpSession.getAttribute
required: demo.MailUserBean