Trouble with settin beans in session

i have in session an object: <jsp:useBean id = "currentBean" scope="session" type="miru.orderInfo.OrderInfoBean"/> and on that page a button: <input type="button" value="Edit" onclick="openWindow('../localhost_3A8080/miru/scrisoareTransport.jsp','ScrisoareDeTransport',1150,600)">

whichopens a new window:

the jsp for this new window looks like this:

<%@ include file="taglibs.jsp" %>

<%@ page import="database.navigator.Navigator"%>

<jsp:useBean id = "currentBean" scope="session" type="miru.orderInfo.OrderInfoBean"/>

<html>

.............................

</html>

when i run the application in IE i get this error: bean currentBean not found within scope

could someone tell me why?

[795 byte] By [Ichybana] at [2007-11-27 6:35:07]
# 1
In jsp:useBean, use the 'class' attribute to define the bean's class instead of the 'type' attribute.
BalusCa at 2007-7-12 18:02:03 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Hy, BalusC...I tried modified int he page which will open but i get a NullPointerException when i use currenetBean.getPackageNo();

it looks like this:

<jsp:useBean id = "currentBean" scope="session" class="miru.orderInfo.OrderInfoBean"/>

<html>

.......

<%if(currentBean.getPackageNo()>0)%> //here is where i get a nullpointer exception

<input type="hidden" value="on">

</html>

10x

Ichybana at 2007-7-12 18:02:03 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
Some one out there can help me with this pls?
Ichybana at 2007-7-12 18:02:03 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...