Entity Bean and servlet !

Discussions

General J2EE: Entity Bean and servlet !

  1. Entity Bean and servlet ! (2 messages)

    Hi buddies,
    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 !

    - Dharmin

    Threaded Messages (2)

  2. Entity Bean and servlet ![ Go to top ]

    Try putting your EJB code in a package, and importing that package in your servlet.
  3. Entity Bean and servlet ![ Go to top ]

    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.

    Regards
    Chetan