• Post Reply Bookmark Topic Watch Topic
  • New Topic

Help to resolve the problem

 
Niyas Ahmed Sheikh
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am using Tomcat 5.0. I am learning Java Bean with JSP. I am encountering the below problem.

Below is the folder structure:
------------------------------





 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65530
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your classes must be in a package other than the default.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Also, the spelling of the paths is case sensitive.
It should be WEB-INF not Web-inf.
 
shyam ramineni
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it also required to import the Person class using the page directive?

shyam
 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you need to make the class known to the JSP. You can just import the package they are in though.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!