• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

importing servlet to jsp

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 1514
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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


 
reply
    Bookmark Topic Watch Topic
  • New Topic