You don’t have to be great to start, but you have to start to be great.
--Your friends at LectureNotes

Note for Advanced Java Programming - AJP By Akash Sharma

  • Advanced Java Programming - AJP
  • Note
  • 7 Offline Downloads
  • Uploaded 5 months ago
0 User(s)
Download PDFOrder Printed Copy

Share it with your friends

Leave your Comments

Text from page-2

Course Details Course Name: Advanced Java & Web Technologies (AJWT) Course Code: R32055 Course Material: http://www.startertutorials.com/ajwt/ Material like lecture notes, lab manual, lab exercises, assignments, previous question papers etc are available. Course Prerequisites: Knowledge of programming in any programming language is required and thorough knowledge of core java concepts is a must. Course Objectives: To make the students get acquainted with skills for creating websites and web apps through learning various technologies like HTML, CSS, JavaScript, PHP, MYSQL, XML, JavaBeans, Servlets, JSP, JDBC, AJAX and Web Services. Course Outcomes: Students will be acquainted with necessary fundamental skills for creating websites and web apps. This course alone is not sufficient for creating high-end web apps like Facebook, Google etc. Syllabus: UNIT I: HTML tags, Lists, Tables, Images, forms, Frames, Cascading style sheets, Introduction to Java script, objects in Java Script, Dynamic HTML with Java Script. UNIT II: PHP Programming: Introducing PHP: creating PHP script, running PHP script. Working with variables and constants: using variables, using constants, data types, operators, Controlling program flow: conditional statements, control statements, Arrays, functions, working with forms and database. UNIT III: Working with XML: Document Type Definition, XML schemas, Document object model, XSLT, DOM and SAX. UNIT-IV: Java Beans: Introduction to Java Beans, Advantages of Java Beans, BDK Introspection, Using Bound properties, Bean Info Interface, Constrained properties Persistence, Customizes, Java Beans API, Introduction to EJB’s. UNIT-V: Web Servers and Servlets: Tomcat web server, Introduction to Servlets: Lifecycle of a Servlet, JSDK, The Servlet API, The javax.servlet Package, Reading Servlet parameters,

Text from page-3

and Reading Initialization parameters. The javax.servlet HTTP package, Handling Http Request & Responses, Using Cookies-Session Tracking, Security Issues, UNIT-VI: Introduction to JSP: The Problem with Servlet. The Anatomy of a JSP Page, JSP Processing. JSP application design with MVC. JSP Application Development: Generating Dynamic Content, Using Scripting Elements Implicit JSP Objects, Conditional Processing – Displaying Values Using an Expression to Set an Attribute, Declaring Variables and Methods Error Handling and Debugging Sharing Data Between JSP pages, Requests, and Users Passing Control and Date between Pages – Sharing Session and Application Data – Memory Usage Considerations UNIT VII: Database Access: Database Programming using JDBC, studying javax.sql.* package, accessing a database from a JSP page, application specific database actions, deploying Java Beans in a JSP Page, Introduction to struts framework.. UNIT VIII: AJAX A New Approach: Introduction to AJAX, Integrating PHP and AJAX, Consuming WEB services in AJAX: (SOAP, WSDL, UDDI) Text Books: • • Programming the World Wide Web - Robert W. Sebesta - 7th edition - Pearson Web Technologies - Uttam K. Roy - Oxford Web / Other References: • Wikipedia.org (for information on various concepts related to AJWT) • php.net (for documentation/help on PHP language) • w3schools.com (for code examples of various concepts related to AJWT) • ajax.org (for help and tutorials on ajax) • jquery.com (a javascript framework) • tizag.com (tutorials on various languages and technologies)

Text from page-4

Overview The Introduction section introduces several fundamental concepts like Internet, World Wide Web (WWW), Web Browsers, Web Servers, URLs (Uniform Resource Locators), HTTP (HyperText Transfer Protocol) and Security related concepts. Chapter 1 introduces fundamental technologies with which the web pages are developed. You will learn HTML (HyperText Markup Language) which is used to describe the content in a web page, CSS (Cascading Style Sheets) which is used to specify styling information for the content in a webpage and JavaScript which is a famous client-side scripting language for creating dynamic web pages. Chapter 2 introduces PHP (Hypertext Pre Processor) and MYSQL, which are technologies on which majority of the web sites are based on, as they are free. PHP is a server-side scripting language and MYSQL is a DBMS (Data Base Management System) like Oracle, Microsoft SQL Server, IBM's DB2 etc. Chapter 3 introduces XML (eXtensible Markup Language) which is used to specify topic related tags (user defined tags) for representing and transmitting information from one system to another. Chapter 4 introduces JavaBeans which is a Java related technology for creating platform independent software components and embedding/using them in web pages or tools. Chapter 5 introduces Servlets which is a Java related technology for server-side programming that includes database connectivity, cookies management, session management and other computational tasks. Chapter 6 introduces JSP (Java Server Pages) which is a Java related technology for serverside programming and is a simplification over Servlets. Chapter 7 introduces JDBC (Java Data Base Connectivity) which a Java specification for connecting to databases and transmitting data from one end to another. Chapter 8 introduces AJAX (Asynchronous JavaScript And XML) which is used to reload a part of the webpage, and Web Services which allow different software components on multiple systems to interoperate with each other.

Text from page-5

Introduction Perhaps the ground breaking discovery made in the past three decades is the World Wide Web (WWW) and Internet. The WWW has changed the life of most people. All the daily mundane tasks like railway ticket reservation, movie ticket reservation, news paper reading, watching television and many other things are being done through Internet and WWW. Like every coin has two sides, as there is good, there is also bad. The advantages (good) of the Internet outweigh the disadvantages (bad). Information sharing has become so simple that you can send information to another person on the other side of the globe within a few minutes. The information in the web is stored in web pages. Internet The Internet is a huge collection of computers across the world connected through a communications network. Generally each computer in the Internet will not be connected to every other computer physically. Computers in an organization will be connected to one another known as a Local Area Network (LAN) and one of the computers in the LAN will be connected to the outside world. So, Internet can also be described as a network of networks. The interface between various computers in the Internet for communicating with one another is a low level protocol known as the TCP/IP. In order to communicate with one another each device in the Internet should be assigned an address which is known as the IP address. Widely used IP address format is the IPv4 which contains 32 bits. An IP address contains 4 octets. For example is an IP address. As the available IP addresses are very less, a new standard known as IPv6 has been approved in 1998 which contains 128 bits. As it is quite difficult to remember the numerical IP addresses, they are converted to names using the DNS (Domain Name System), which are easy to remember. Names and IP addresses are analogous to variable names and memory addresses in programming. As the IP addresses are by the Internet internally, there should be some mechanism for converting a name (domain name) to its corresponding IP address. This is done by a software system known as the name server which implements the DNS. Below figure illustrates the abstract representation how a request is handled in the Internet. By mid 1980's many high-level protocols like telnet, ftp (file transfer protocol), Usenet (bulletin board), mailto (mail transfer) and others were developed. So, in order to gain all the advantages of the Internet, a user should learn all interfaces related to the protocols mentioned before. By late 1990, a new better approach came into existence which is known as the World Wide Web (WWW) for using the Internet effectively.

Lecture Notes