How to use bean as attribute?

I create a bean(sql result) from a servlet and put it in the request using setAttribute(bean) and then use dispacher to send the request to the display.jsp. In display.jsp i have a <jsp:usebean id="bean" class="beanClass"> but when i use <jsp:getProperty name="bean" property="colum1"/> it doesnt give anything. Did i miss anything? How does the usebean tag know which bean i wanna use? The usebean tag i used creates a new bean, right?

Hope to get some help

[483 byte] By [lnthai2002a] at [2007-11-27 5:10:53]
# 1
May be you need to define the scope for <jsp:useBean> tag. For class, try to add package.class.
skp71a at 2007-7-12 10:31:08 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...