jsp more than dynamic pages when and why to use it
play

JSP - More than Dynamic Pages: When and Why to Use It Presented by: - PowerPoint PPT Presentation

JUGS Work In Progress Seminar JSP - More than Dynamic Pages: When and Why to Use It Presented by: Paul Giotta Tiberiu Fsts 22 May 2000 Presentation Overview Part 1 Part 2 Project Requirements Design Drivers


  1. JUGS Work In Progress Seminar JSP - More than Dynamic Pages: When and Why to Use It Presented by: Paul Giotta Tiberiu Füstös 22 May 2000 � �

  2. Presentation Overview � Part 1 Part 2 Project Requirements Design Drivers • • Solution Landscape Application Model • • Introduction to JSP Model/View/Controller Approach • • Programming features Simple Forms – • Application server features Complex Forms – • JSP and Servlets OO Solution • • JSP and EJB Deployment • • Container Vendors Security • • Platform Selection Criteria Future developments • • � � �

  3. Project Background and Requirements � Client and Project are Confidential – Security is Critical – Multi-Lingual – Phase 1: Bring client’s current business processes to the web ASAP – Very short design and development cycle – Small amount of custom functionality – Maximize reuse in phase 2 – Keep it simple – Phase 2: High volume eCommerce site – Lots of standard functionality: – Catalog, Shopping Cart, Payment, Personalization, Cross Selling, etc. • Specific requirement not yet determined – � �

  4. Network Architecture � � �

  5. Solution Landscape � ���������������� ����������������� ������� � ������������������������������ ������������������������� ������ ������������������ ���������������� ������������������������ ����������������������� ��� ����������������������� ���!���� ����������������������� ���������������������������� � �

  6. Intro to JSP: Page Elements � ...< BODY> <%@ page language="java" import="com.acme.app.*, java.util.*" %> Standard Tags • ‘Use Bean’ <jsp:useBean id="hist" • scope="session" Session Management class="com.acme.app.histBean" /> • Alternate Languages • <% Iterator itOrders = hist.getOrderList().iterator(); Custom Tags • while (itOrders.hasNext()){ Order odr = (Order)itOrders.next(); %> <TR> <TD>Autrags-Nr.: </TD> <TD> <%= odr.getRenderer("odrNum").disp()%> </TD> <TD>Liefer-Datum:</TD> <TD> <%= odr.getRenderer("dvDt").disp()%> </TD> </TR> <% } %> </BODY></HTML> � �

  7. Intro to JSP: App Server Features � Applications • ‘Virtual Server’ – One of 4 levels of scope for a bean – Deployment • Deployment Descriptors – WAR file – Security • Forms based – Defined at Application Level – JSP Server remotlely connected to Web Server • Dynamic pages must not be in DMZ :-) – Some support for Load Balancing / Fault Tolerance – � �

  8. JSP and Servlets � JSP extends Servlet API • Many features are actually inherited from Servlet specification • JSP spec requires implementations to compile JSP’s into Servlets • Strong relationship between versions of Servlet & JSP specs: • Servlet 2.1 JSP 1.0 Servlet 2.2 JSP 1.1 � �

  9. JSP and EJB � JSP 1.1 / Servlet 2.2 define the equivalent of an EJB Web Container • JSP applications should be directly portable to EJB containers • JS P E JB W eb JS P Tags JS P T ags presentation layer A pplication Java B eans S ession B eans Logic P ersistence N o direct support (D IY ): S ession B eans w /JD B C B eans w /JD B C E nitiy B eans w /C M P (D IY ) D eploym en t W A R file W A R file D eploym ent D escriptors D eploym ent D escriptors � �

  10. JSP Containers: Vendors & Pricing � Product Approx. Price (USD) Comments Base version: free Largest installed base Allaire JRun Pro version: $600 per processor Pro Unlimited: $2000 per machine Caucho Resin Free for non-commercial use Most features $500 per Server Open Source $2500 with premium support Free Open Source Jakarta Tomcat Offical Reference Implementation Part of the Apache project � �

  11. Platform Selection Criteria � Security • Standards Compliance • Upward compatibility w/ EJB • Delay decision for expensive, transactional, eCommerce • platform Quick implementation • � �

  12. Solution Landscape Revisited � ���������������� ����������������� �������� ������������������������������ ������������������������� ������ ������������������ ���������������� ������������������������ ����������������������� ��� ����������������������� ���!���� ����������������������� ���������������������������� � �

  13. Conclusions � JSP defines an application server that is well suited to projects of small • to medium complexity. JSP containers are an excellent starting point for organizations that • want to pursue EJB development, but are not ready to commit to the cost and learning curve of a full EJB product. � �

  14. JUGS Work In Progress Seminar JSP - More than Dynamic Pages: When and Why to Use It Part II � �

  15. "������"������� • �#���$�����������%�������&#������'���� �����%'� ��������'������������ • ���%��������������������#���������������������� • (����������������������������������)�� ����#��� ������������������������������ • *#�$�������������������������&�����%��#�&������ ���������������� � �

  16. ������������������ +������,-� • +����#���*�.#���-� • � �

  17. � %�����������������/� • 0#�������������#������ • �����������������������������%������#��������������� ����������������������������� • ����������������%����� • ��������#���%������������� ������� • ����������%����������������������������������������&%� � �������#�$����� � �

  18. "��������������1��)������������������� � � �

  19. 2�� �3�������������������#������� � �

  20. ������$0���������������� • "����������+������-�����4� – +��������������������2��3������) �� �����&�����������&%��� ������������������#����������������#������%������-� �"����������'�(��5&6�����0#����'�7�3���8�� • ��������������������4� – ����� ��������������������!��)��������������������������� ���������� �������#��#��������#�&�������)������������ • �9�����4� – +�����-�����4����������,�������4�#����������%���+��9�-������ ����)������%���+����)���-�� � �

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend