Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling EJBs from JSP pages 2

Status
Not open for further replies.

multiplex77

Programmer
Dec 25, 2001
302
SG
Hi,

Can anyone point me to some sample code or books which show how to call EJBs from JSP pages?

I'm new to J2EE but am trying to build my skills by teaching myself thru books. But even as a pretty experienced programmer (in ASP) and a person with a reasonably normal IQ, I'm baffled by the complexity and the lingo. I spent a whole day reading a Teach yourself EJBs in 21 days book (which is supposed to be for beginner-intermediate leve), and read up all about session, entity beans, stateful, stateless, EJB home and EJB object calling, etc, but still can't get any info on how to call them from JSP pages! I'm learning this primarily to develop web applications, so I'm not interested in using EJBs for desktop applications, etc.

Did anyone else have this problem when they started out?

Thanks for the help and advice.
 
You have to use a JSP Action Tag.

Example:

<jsp:useBean name=&quot;myClass&quot; class=&quot;com.classes.MyClass&quot;>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top