Java bean gives null pointerexception
Posted on 2003-11-01
I know this is really very very funny.At times my java bean application works and at times it give an exception of null pointer.
I think my problem is that maybe i am not using the get properly,
I mean, when i use set i use:
<jsp:useBean id="vol" class="com.dhal.volun" scope="session"/>
<jsp:setProperty name="vol" property="*"/>
But i use the getters such as:
Do i need to write something maybe to use it, for example,
coz, when i look at work folder for the jas_jsp files it seems as if vol is null.
But if write
username gets printed so i am surprise which is null.