• Post Reply Bookmark Topic Watch Topic
  • New Topic

Access Problem in JSP

 
Ram kanana
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I am hosting my site which contains JSP and JavaBean classes I put my classes under WEB-INF/classes. But when accessing JSP file it shows an error message "jsp:useBean can't find class". Can anybody help me.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65524
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are the classes in a package? See the JSP FAQ.
 
Ram kanana
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes this is in apackage
 
albert sie
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
then u just past import that package to make you page work. if cannot, you try to put the bean file inside the common/classes in the tomcat, it's works for me.
 
Ram kanana
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But i have only WEB-INF/classes Folder alone.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65524
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You haven't given us anywhere near enough info to help. What are the classes? What packages are they in? What folder under WEB-INF/classes did you place them in? And so on...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!