Which of the following statements correctly store an object associated with a name at a plac where all the servlets/jsps of the same webapp participating in a session can use it?
1)request.setAttribute(name,value)
2)response.setAttribute(name,value)
3)request.getSession().setAttribute(name,value)
4)servlet.getServletContext().setAttribute(name,value)
5)request.setParameter(name,value)
i answered 3 but jwebplus answered 3,4
In 4, what does the servlet mean.
Please clear this.