Hi all,
I have written one bean & placed the class file of the same bean in the WEB-INF/classes folder. The bean is not in any package, but it is in default package.i.e there is no package statement in the bean's
java file.Now i want to use the same bean in a
jsp. Now when i try to instantiate the bean i am getting the error. The jsp engine is not able to find the class. i tried to import the class, but still got another error.
Now when i put the bean in a package and try to use it in the jsp, it worked fine.
Question : Is it mandatory to put a bean inside a package ?
Thanks
Ramdas.