purpose of request.setAttribute(String parm1, Object parm2)

hi

can anybody please explain to me what doesHttpServletRequest request.setAttribute()do? and for what purpose is it used for?

i already know thatHttpSession session.setAttribute(String parm1, Object parm2)is used to bind a session to a variable, so that it can be accessed throughout the servlet application.

thanx

shankha

ps: please correct me if i'm wrong

[431 byte] By [shanxstera] at [2007-11-27 5:34:29]
# 1
The session.setAttribute() makes a session scope attribute while request.setAttribute() makes a request scoped one.
hiwaa at 2007-7-12 15:02:39 > top of Java-index,Java Essentials,New To Java...