ravib_cs491h.ppt

837 views
728 views

Published on

Published in: Technology, Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
837
On SlideShare
0
From Embeds
0
Number of Embeds
6
Actions
Shares
0
Downloads
13
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • Model View Controller (MVC)
  • ravib_cs491h.ppt

    1. 1. Server Side Technologies Ravi Varma Budigelli CS 491H
    2. 2. Terminology <ul><li>Server : is an object that can be remotely invoked </li></ul><ul><li>Client : is an object that invokes methods on the remote object. </li></ul>
    3. 3. Server Side Technologies ??? <ul><li>CGI Scripts </li></ul><ul><li>ASP </li></ul><ul><li>Servlet </li></ul><ul><li>JSP </li></ul><ul><li>RMI </li></ul><ul><li>CORBA </li></ul><ul><li>EJB </li></ul><ul><li>XML </li></ul>
    4. 4. Enterprise Today… <ul><li>Responsiveness </li></ul><ul><li>Programming Productivity </li></ul><ul><li>Reliability and Availability </li></ul><ul><li>Security </li></ul><ul><li>Scalability </li></ul><ul><li>Integration </li></ul>
    5. 5. System Architecture <ul><li>2 – tire Architecture </li></ul><ul><li>3 – tire Architecture </li></ul><ul><li>N – tire Architecture </li></ul><ul><li>Enterprise Architecture </li></ul>
    6. 6. 2 – Tire Architecture Application DB
    7. 7. 3 – Tire Architecture User Interface Application Logic DB XML Document
    8. 8. N – Tire Architecture <ul><li> Firewall </li></ul>Browser Application Client Presentation Logic Business Logic Services DB XML Document
    9. 9. Enterprise Architecture Html Form Java Applet Any system capable of Presenting data Interface Interface Interface App Comp App Comp App Comp Remote System XML Document DB Database Middleware
    10. 10. Servlet Vs CGI Scripts high Medium Availability Low High Security Medium Very high Platform Independent High Medium Server Support Low High Execution Efficiency Medium Medium Ease of Creation CGI Scripts Servlet
    11. 11. Servlet <ul><li>Add new features to the server </li></ul><ul><li>Runtime changes to content </li></ul><ul><li>Runtime changes to presentation </li></ul><ul><li>New standard protocols </li></ul><ul><li>New custom protocols </li></ul>
    12. 12. Servlet Cont… <ul><li>Maintain session information </li></ul><ul><li>Act like middle tier </li></ul><ul><li>Act like a proxy for a client </li></ul><ul><li>Augment the features of the middle tier </li></ul>
    13. 13. Servlet Cont… <ul><li>Server communicates with a servlet through a simple interface javax.servlet.Servlet </li></ul><ul><li>init() </li></ul><ul><li>service() </li></ul><ul><li>destroy() </li></ul>
    14. 14. JSP ??? <ul><li>A JSP page is simply an HTML web page that contains additional bits of code that execute application logic to generate dynamic content. </li></ul><ul><li>Application logic: JavaBeans, JDBC objects, Enterprise Java Beans (EJB), etc. </li></ul>
    15. 15. Servlet Vs JSP <ul><li>Servlets are Java’s answer to CGIs.Servlets mix the dynamic content into the the static part to generate HTML. </li></ul><ul><li>JSPs separates static and dynamic content (presentation and logic) in web application. </li></ul>
    16. 16. JSP Vs ASP <ul><li>Have many similarities: separate logic from page design. </li></ul><ul><li>JSP Technology </li></ul><ul><ul><li>Platform and Server Independence </li></ul></ul><ul><ul><li>Reusability Across Platforms </li></ul></ul><ul><ul><li>The Java Advantage </li></ul></ul><ul><ul><li>Easier Maintenance </li></ul></ul>
    17. 17. JSP Constructs <ul><li>Scripting Elements : let you insert Java code into JSP page (and hence into the resulting servlet). </li></ul><ul><li>Directives : let you control the overall structure of the servlet. </li></ul><ul><li>Actions : let you control the runtime behavior of the JSP . </li></ul>
    18. 18. JSP Scripting Elements <ul><li>Declarations: <%! code %> </li></ul><ul><li>Scriptlets: <% code %> </li></ul><ul><li>Expressions: <%= code %> </li></ul>
    19. 19. JSP Actions <ul><li>Actions are tags that affect the runtime behavior of the JSP and the response sent back to the client. </li></ul><ul><li><jsp: useBean> <jsp: include> </li></ul><ul><li><jsp: setProperty> <jsp: forward> </li></ul><ul><li><jsp: getProperty> <jsp: plugin> </li></ul><ul><li><jsp: param> </li></ul>
    20. 20. JSP Custom Tags <ul><li>Tag Handler </li></ul><ul><li>Tag Library </li></ul><ul><li>JSP File </li></ul>
    21. 21. RMI Vs CORBA <ul><li>RMI </li></ul><ul><li>RMI – IIOP </li></ul><ul><li>CORBA </li></ul>
    22. 22. RMI - IIOP RMI Client (Java Only) CORBA Client (any Language) CORBA Server (any Language) RMI Server (Java Only) RMI Client (Java Only) RMI-IIOP Client (Java) RMI-IIOP Server (Java) RMI Server (Java Only) CORBA Client (any Language) CORBA Server (any Language) JRMP JRMP IIOP IIOP
    23. 23. Questions…
    24. 24. Thank you…

    ×