I haven't been able to answer these 2 questions in a written interview I had, can everyone help me?
QUESTION 1) Suppose you want a Servlet to send persistent data to a JSP page, such that different users get different data, which of the following sentences is true?
--a) You can use the instruction: request.getSession().setAttribute(E,F); The JSP page will read the information using the action jsp:useBean with scope="page" and id="E".
--b) You can use the instruction: request.getSession().setAttribute(E,F); The JSP page will read the information using the action jsp:useBean with scope="session" and id="E".
I thought b) could be the right answer but I'm not sure if I completely understand what "persistent data" refers to..
QUESTION 2) If a servlet sends a bean to a JSP page, possible changes to the bean made inside the JSP page will always be visible to other JSP pages or servlets that will access the bean in future. True or False?
I guess it's false but I just can't get a good explanation about it..
Thanks in advance guys!