Yes i think you can but you will have to set session in your model using
jsp or servlet class suppose that your class is
test in which you need session and the servlet is Check then you can do that in this way.
public class Check extends HttpServlet{
protected void doPost(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
// TODO Auto-generated method stub
HttpSession session= req.getSession();
Test test = new Test();
test.setSession(session);
}
class Test
{
HttpSession sessionObject = null;
public void setSession(HttpSession session)
{
this.sessionObject = session;
}
}
}
now your session object is same as the servlet session