FreshmenProgrammer
Programmer
Hello, Thank you for reading this post. I know how to set a session variable and get a session variable in a servlet. How do you set and get a request scope or the next one down from session. and how can I get it from a jsp page also. Thank you.
EG.
set
request.getSession().setAttribute("name", name);
to get it in a servlet
String name = (String)request.getSession().getAttribute("name");
to get it in a jsp
${seesionScope.name}
EG.
set
request.getSession().setAttribute("name", name);
to get it in a servlet
String name = (String)request.getSession().getAttribute("name");
to get it in a jsp
${seesionScope.name}