Hi all,
I am learning basics of
jsp and trying out my own examples. I have a doubt with regards to working of
<jsp:useBean> tag. The scenario is as follows: -
login.jsp: - .... thus i set two objects in session 1)
date and 2)
user object in
login.jsp ... and i try to access these objects in
simplejsp.jsp using the <jsp:useBean> .... but it does not work !
simplejsp.jsp i get an exception here saying:-
/simplejsp.jsp(15,2) The value for the useBean class attribute org.omkar.swajsp.vo.User is invalid.
.... but why only for the user object??? ... why not for the date object, as i have also mentioned, class attribute for date object??? ... i modified the code ... something like this: -
and it works! ... here i have changed the class attribute to type attribute for the <jsp:useBean> tag for user object ...and the page is displayed as:-
Sun Jul 06 11:55:28 IST 2008
org.omkar.swajsp.vo.User@d9205
.... so i did not get the working of the <jsp:useBean> and its attribute...
i tried to follow this
link ... but did not understand much!
Please help me !