• Post Reply Bookmark Topic Watch Topic
  • New Topic

Compilation In bean

 
Jasmine kaur
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everybody,
I have made a Bean known as UserdataBean and Iam calling this bean in jsp page ,since I have saved and compiled this Bean in my directory
c:\tomcat_40\webapps\jass\web-inf\classes\UserDatabean.java
Iam compiling this bean here and when I acll this bean in jsp page Iam getting this error which is following.
Class org.apache.jsp.UserDataBean not found.
UserDataBean User1 = null;

Iam using tomcat4.0 .
Well I tried alot but anyone can suggest me where Iam wrong.
Thanks

jasbir
^
 
Sumitro Palit
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You probably forgot to import the class :
<%@ page import = "UserDatabean" %>

- ortimuS
[ June 09, 2004: Message edited by: ortimus tilap ]
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a recording - put the bean in a package other than default.

(Do a search in this forum... this is a problem that comes up a lot...)
 
Jasmine kaur
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everybody,
Thanks for helping me ,well its working perfecctly now .
Thanks for all the help.Thanks alot
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!