• Post Reply Bookmark Topic Watch Topic
  • New Topic

importing servlet to jsp

 
Melinda Wilson
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bare with me, I'm a beginner at this.
Error in my jsp, it says package not found. In my jsp I imported what I think the package name should be it kept flagging package not found.
In my project I have a servlets package and a classes package. Do I import the the servlets package or the classes package or both?
If I don't make sense let me know.
Thank you very much.
 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Import the packages your code needs. In some servers you have specifically import the classes needed instead of the entire package. This only applies to packages you created though. We use Websphere 3.5 here and it has that problem.
Bosun
 
Melinda Wilson
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you. We use Websphere too. I will import classes.
Originally posted by Bosun Bello:
Import the packages your code needs. In some servers you have specifically import the classes needed instead of the entire package. This only applies to packages you created though. We use Websphere 3.5 here and it has that problem.
Bosun

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!