java-4-j2ee
java-4-j2ee
ay Sumoyqog Atarerpoura paqpea st poqour —— au u 4 +9] s + spomjaur yoeqte> pasn <\uounuos ——— axe arayy| ‘ueaq Aunuo we ur pauteit09| q s + ¢ Z|__Attwordts axe yexp spoyrout yo sdnoa axe aro | anoge| evep| niepquaysisiod | ayrjoauou | uoreuoyuy | quaistsiod erp ueag Aiua ue £q pafeurus pur poyoaiJ09 ee anoge| ueaq uasuip] — ueaq easel] uvaq| uoneondde rag ear Aims | a yoouou | -afessour| —uorssos | part Anus AAZE ® Jo asnoysomod amp pasaprsuod st | 0 ‘fa 200 Aq papiaoad so14s9s a4p 01 poztwoysno st yeIp a1 Opomerder | Opomopvdr |Qarourygl> | arearssegglo| Qareanoyals | _ssaursnq surewzo9 req porpaut e st powpaut 4 0 areatsseaql} ‘uonda}00 afeqred 109 a]qeyre0e| Corowayate | arwarql2 | Qarowarale Oareanavala sy ueag ayy azojeq isnt partes st powpaut a4. 0 soaanosou as89]91 124) SSULIMO UTEILOD Pinoys pur [ood| areatsseaql} saa{qo aq oy poumjar st weaq MOIssas op UaYpA aves assed, | Qarearsseaqla | _Qarearpafo | Qorowayale Qareansyafa | au siamo aouesi aqp azoyoq partes st poyrou — augOvxaqwopuas| uigafessoyyros ato w UONy ApaauIpUL poatoooy Qaaessayyuo arowayale |_ Oras | Qodessayquo | sadessaus sasseoord ae aul azayr st poyreur —— a4 ‘seqriep| Qaxorsqfa | Oosouoyale | _Oawaxqlo | Qarorsafa | Opeotae 1801 top saxtim poous ——— ap ‘ueaq awe -aseqevEp & UL puodar mau sHAst Qareaigafe | Qasowayate | Qareaigafe | atowsafa | _Opeorafe | _rem apoo aney isn poau ayy “uwaq gna 0 ‘oseqriep woy e1ep speay peo gt | Qarcumyq' | Oareanal | Oatorsal | Opeorats ey) apo9 uteyuOD ysnuw poxyaut —— ___——‘ueaq dW g s| 4 ¢ 7 twe9q AIEL Ut paUyOP spowrsu aye sou ( “jourewos geg ayy Aq 10 yaH] ayp Foy Aq sareutULIDy ANU Oorouraae | _Oprorg!> | Ooromaygt> | joreanoyalo] Oareusseag’> qf a209q Aqorerpoun payyea st poyrou: 904, ( “seoinosai| Jareannaye} 1 yeyp sournos urEIUOD PINoYs pu ayes ,oaIssed, | Corarsseaqlo | _Oproral> | Qarowmya!> Coreatsseaqfa | _oup sratua aguas op 220599 parTRa st pompous! — ay. (Oneamey) ony oseqeiep Buikropun| Awmugnosun] awostinugias} om or Raors q areys sit aztuompoUAs op oueysur ayn FonNSt Qaiorsqie | Oasorsals | _Opeorals ‘0 saujertoo & £q payonur st poyyaut ay. (Onxomeg) On ‘seqniep Hui ropun| Awmugnsun] awopcinugies| op woyy areis sy Sumpeoy Aq arms stt ozmtomqouKs oF aaueIst Opeoqa | Qoreansyale | Opeotafs ‘yy jorunstt 0} pomyatu—— yp soyoaua soupent09 ¥yUNIT-V JSP: What is Java Server Pages? - Evolution of Dynamic Content Technologies — JSP & Java 2 Enterprise edition, JSP Fundamentals: Writing your first JSP- Tag conversions- Running JSP. Programming JSP Seripts: Scripting Languages — JSP tags- JSP directives — Scripting elements — Flow of Control — comments. Java Remote Method Invocation, TEXT BOOKS 1. Jim Keogh. (2010). The Complete Reference J2BE, Tata McGraw Hill: New Delhi Ist Edition, 2. Duane, K. Fields., & Mark, A. Kolb. (2002). Web Development with Java Server Pages, Manning Publications, Pune, 2" Edition. REFERENCES 1. Joel Murach, Michael Urban, (2014), Murach's Java Servlets and JSP, (Murach: Training & Reference). 3rd Edition 2. Budi Kurniawan (2012), Servlet & JSP: A Tutorial, Brainy Software Publisher, 1" Edition. Mahesh P. Matha (2013), JSP and SERVLETS: A Comprehensive Study PHI Learning, 1* Edition. WEB SITES 1. www,java.sun.com/javace! 2. www java.sun.com/j2ee/1.4/docs/tutorial/doc! 3. www j2eebrain.com/ 4, www javaworld.com/ 5. www.corej2eepatterns.com/ 6. www jsptut.com Prepared by Dr.S. Manju Priya, Department of CS, CA & IT, KAHE Page 1/342016-2018 Batch 5.1 WHAT IS JAVASERVER PAGES? JavaServer Pages (JSP) a technology for developing Webpages that supports dynamic content. This helps developers insert java code in HTML pages by making use of special ISP tags, most of which start with. A JavaServer Pages component is a type of Java servlet that is designed to fulfill the role of a user interface for a Java web application. Web developers write ISPs as text files that combine HTML or XHTML code, XML elements, and embedded JSP actions and commands, Using JSP, you can collect input from users through Webpage forms, present records from a database or another source, and create Webpages dynamically. JSP tags can be used for a variety of purposes, such as retrieving information from a database or registering user preferences, accessing JavaBeans components, passing control between pages, and sharing information between requests, pages etc. Why Use ISP? JavaServer Pages often serve the same purpose as programs implemented using the Common Gateway Interface (CGI). But JSP offers several advantages in comparison with the CGI + Performance is significantly better because JSP allows embedding Dynamic Elements in HTML Pages itself instead of having separate CGI files. + JSP are always compiled before they are processed by the server unlike CGI/Perl which requires the server to load an interpreter and the target script each time the page is requested. + JavaServer Pages are built on top of the Java Servlets API, so like Servlets, JSP also has access to all the powerful Enterprise Java APIs, including JDBC, JNDI, EJB, JAXP, etc. Prepared by Dr.S. Manju Priya, Department of CS, CA & IT, KAHE Page 2/342016-2018 Batch Java Server Pag + JSP pages can be used in combination with servlets that handle the business logic, the model supported by Java servlet template engines. Finally, JSP is an integral part of Java EE, a complete platform for enterprise class applications. This means that JSP can play a part in the simplest applications to the most complex and demanding, Benefits of JSP One of the main reasons why the Java Server Pages technology has evolved into what it is today and it is still evolving is the overwhelming technical need to simplify application design by separating dynamic content from static template display data, Another benefit of utilizing JSP is that it allows to more cleanly separating the roles of web application/HTML designer from a software developer. The JSP technology is blessed with a number of exciting benefits, which are chronicled as follows: 1. The JSP technology is platform independent, in its dynamic web pages, its web servers, and its underlying server components. That is, JSP pages perform perfectly without any hassle on any platform, run on any web server, and web-enabled application server. The JSP pages can be accessed from any web server 2. The JSP technology emphasizes the use of reusable components. These components can be combined or manipulated towards developing more purposeful components and page design. This definitely reduces development time apart from the At development time, JSPs are very different from Servlets, however, they are precompiled into Servlets at run time and executed by a JSP engine which is installed on a Web-enabled application server such as BEA WebLogic and IBM WebSphere, 5.2 EVOLUTION OF DYNAMIC CONTENT TECHNOLOGIES. Server-side scripting refers to the dynamic generation of Web pages served up by the Web server, as opposed to "static" web pages in the server storage that are served up to the Web browser. In other words, some part of the content sent in response to a HTTP Prepared by Dr.S. Manju Priya, Department of CS, CA & IT, KAHE Page 3/34