• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

J2EE Project -- HELP!!!

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 350
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic