File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes J2EE Project -- HELP!!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "J2EE Project -- HELP!!!" Watch "J2EE Project -- HELP!!!" New topic

J2EE Project -- HELP!!!

Sandeep VL

Joined: Mar 21, 2001
Posts: 2
I'm working into a project that involves EJB,JSP,Servlets.
I've 2 options:
1. Call EJB from JSP
2. Call Servlet from JSP and Servlet inturn will make a call
to EJB.
Which is the best technique of the two and why???
Pl. help me.
Have a great day.
Vivek Viswanathan
Ranch Hand

Joined: Mar 03, 2001
Posts: 350
The first option is possible only if u get a reference to the EJBHome obect in the inti() method of the JSP page.
The Second option is a better option since according to the Model 2 JSP Architecture you will b seperating the Java Code ( in the Servlet) from the View ( the JSP pages taht is sent to the Client browser).
You will get some more information of JSP Model to Structure over here.... it will help u in designing JSP pages for Enterprise Systems

Vivek Viswanathan SCJP 1.2, SCJP 1.6,SCJD,SCEA,SCWCD,IBM-484,IBM-486,IBM-141,Ms.NET C# 70-316,SCMAD, LPIC-I
Sandeep VL

Joined: Mar 21, 2001
Posts: 2
Thanx Vivek.
I'm new to J2EE and designing concepts.So Pl. guide me how do I go about looking for which is the best way for architecture designing and utilising J2EE to maximum level.
I agree. Here's the link:
subject: J2EE Project -- HELP!!!
It's not a secret anymore!