• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to import a class that belongs to default package?

 
Ram Kas
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to import a class that belongs to default package in a jsp page?

Thanks
Dinakar.K
 
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
No. This is covered in the JSP FAQ.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It used to be like 'page import="MyClass"', but newer versions of Tomcat (if that's your servlet container) no longer support classes in the default package.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!