File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

J2EE Project -- HELP!!!

 
Sandeep VL
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 350
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Sandeep VL
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic