how to call "session scope"or "application session" bean from servlet?

I can call javabean use "jsp:useBean" in jsp,How can I call a "session scope bean" or a "application scope bean" that has been call in a jsp before?
[162 byte] By [earthinkjava@163.com] at [2007-9-30 21:55:02]
# 1
Session scoperequest.getSession().getAttribute("yourSessionScopebeanId")application scope getServletContext().getAttribute("yourSessionScopebeanId")
jSweep at 2007-7-7 3:23:06 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
oh....Session scoperequest.getSession().getAttribute("yourSessionScopebeanId")application scope getServletContext().getAttribute("yourApplicationScopebeanId")
jSweep at 2007-7-7 3:23:06 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
Thank you very much!!
earthinkjava@163.com at 2007-7-7 3:23:06 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...