General J2EE: Entity Bean and servlet !
I hv one entity bean named CasePaperBean (with CasePaper - remote interface and CasePaperHome - Home interface) which is running cool as i hv tested it from jsp.
( <%@ page import="CasePaper,CasePaperHome,javax.ejb.* like wise)
But when i am trying to access it from servlet (import CasePaper;import CasePaperHome;)
ant is giving an error like import CasePaper; - dot (.) expected.
Should i need to code Entity Bean in Package, please help !
Try putting your EJB code in a package, and importing that package in your servlet.
another way is to put ur EJB class files directly under classes folder. second way it to put them in lib folder. But will not put them in lib. better way is to put in classes folder.