EJB & JSP: Java On The Edge, Unlimited Edition by Lou Marco ISBN: 0764548026 Your Guide to Cutting-Edge J2EE Programming Techniques. Summary In this chapter, you’ve seen how you can leverage the features of JavaServer Pages to create clients for enterprise beans. By using JSP pages, you can hide functions within JavaBeans or custom tags, thereby separating your presentation from your logic. You’ve seen how a JSP page can use a custom tag to locate an instance of a bean’s home object. The single, empty tag containing needed data as values of attributes allows a JSP page to work with the EJB architecture. Once the page has a reference to a home object, the page can request the execution of bean methods like any EJB client. Tag libraries are a powerful feature of JSP. By using tag libraries, your JSP pages contain less Java scriptlet code and more tags. Since scriptlet code implies business logic, by keeping scriptlet code to a minimum, you’ll have less mingling of presentation and logic. You’ve seen the enterprise bean code that performs the same functions as the code shown in Chapter 10. Aside from including dummy method implementations as required by EJB, the code that accesses the database is mostly the same as that shown in Chapter 10. However, by adhering to the EJB specification, your code now creates objects that are distributed objects with location transparency and have access to transaction and security resources by way of the EJB container.
Get account with us and you will get completely access to our free web templates database with over 10.000 templates in it to build your website.Don’t wait, go and check free web templates.

Leave a Reply