what is the class property of a javabean. if i have created a bean by the name of userinfo and want to access it in my jsp page.. do i give the whole classpath where the bean is stored..
Andres Gonzalez
Ranch Hand
Joined: Nov 27, 2001
Posts: 1561
posted
0
Originally posted by jyotsana dang: what is the class property of a javabean. if i have created a bean by the name of userinfo and want to access it in my jsp page.. do i give the whole classpath where the bean is stored..
hmm.. Have you imported your bean into your jsp page? have you used the useBean tag? I did not fully understand your question
I'm not going to be a Rock Star. I'm going to be a LEGEND! --Freddie Mercury
jyotsana dang
Ranch Hand
Joined: Sep 26, 2003
Posts: 135
posted
0
yes i have imported bean into my jsp page.. bt needed to understand that if i have a userinfo as the bean stored in tomcat/webapps/root/jsp/bean. when we use <jsp:useBean> tag we set the class as "jsp/bean/UserInfo" please help
Anand Ko
Ranch Hand
Joined: Dec 03, 2003
Posts: 79
posted
0
1) I think U can use this syntax : <jsp:useBean id="<anyname>" class="jsp.bean.userinfo"/> to instantiate userinfo bean and assign to id.