Hi, 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. Sandeep
Vivek Viswanathan
Ranch Hand
Joined: Mar 03, 2001
Posts: 350
posted
0
hi 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 http://java.sun.com/j2ee/blueprints/web_tier/jsp_page_design/index.html vivek
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. Sandeep