www.FirstRanker.com www.FirstRanker.com
DEPARTMENT OF
COMPUTER SCIENCE AND ENGINEERING
--- Content provided by FirstRanker.com ---
CS6512 - INTERNET PROGRAMMING LABORATORY
V SEMESTER - R 2013
LABORATORY MANUAL
Name : _________________________________________________
Register No.: _________________________________________________
--- Content provided by FirstRanker.com ---
Section : _________________________________________________
VISION
College of Engineering is committed to provide highly disciplined, conscientious and enterprising professionals conforming to global standards through value based quality education and training.
MISSION
- To provide competent technical manpower capable of meeting requirements of the industry
- To contribute to the promotion of Academic Excellence in pursuit of Technical Education at different levels
- To train the students to sell his brawn and brain to the highest bidder but to never put a price tag on heart and soul
--- Content provided by FirstRanker.com ---
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
VISION
To strive for acquiring, applying and imparting knowledge in Computer Science and Engineering through quality education and to provide enthusiastic professionals with commitment
--- Content provided by FirstRanker.com ---
MISSION
- To educate the students with the state-of-the-art technologies to meet the growing challenges of the electronics industry
- To carry out research through continuous interaction with research institutes and industry, on advances in communication systems
- To provide the students with strong ground rules to facilitate them for systematic learning, innovation and ethical practices
PROGRAMME EDUCATIONAL OBJECTIVES (PEOS)
--- Content provided by FirstRanker.com ---
- Fundamentals
To impart students with fundamental knowledge in Mathematics, Science and fundamentals of engineering that will would them to be successful professionals
- Core Competence
To provide students with sound knowledge in engineering and experimental skills to identify complex software problems in industry and to develop practical solution for them
- Breadth
To provide relevant training and experience to bridge the gap between theory and practice this enables to find solutions for real time problem in industry and organization and to design products requiring interdisciplinary skills
--- Content provided by FirstRanker.com ---
- Professionalism skills
To bestow students with adequate training and provide opportunities to work as team that will build up their communication skills, individual leadership and supportive qualities and to develop them to adapt and work in ever changing technologies
- Lifelong Learning
To develop the ability of students to establish themselves as professionals in Computer Science and Engineering and to create awareness about the need for lifelong learning and pursuing advanced degrees
--- Content provided by FirstRanker.com ---
PROGRAMME OUTCOMES (POS)
- To apply basic knowledge of Mathematics, Science and Engineering fundamentals in Computer Science and Engineering field
- To design and conduct experiments as well as to analyze and interpret and apply the same in the career
- To design and develop innovative and creative software applications
- To understand a complex real world problems and develop an efficient practical solutions
- To create, select and apply appropriate technique, resources, modern engineering and IT tools
- To understand their roles as professionals and give the best to the society
- To develop a system that will meet expected need with realistic constraints such as economical, environmental, social, political, ethical, safe and sustainable
- To communicate effectively and make others understand exactly what they are trying to convey in both verbal and written forms
- To engage lifelong learning and exhibit their technical skills
- To develop and manage projects in multidisciplinary environments
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
CS6512-INTERNET PROGRAMMING LABORATORY
SYLLABUS
COURSE OBJECTIVES
- Be familiar with Web page design using HTML/XML and style sheets
- Be exposed to creation of user interfaces using Java frames and applets
- Learn to create dynamic web pages using server side scripting.
- Learn to write Client Server applications
- Be familiar with the frameworks JSP Strut, Hibernate, Spring
- Be exposed to creating applications with AJAX
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
LIST OF EXPERIMENTS:
WEBPAGE CONCEPTS
a) Create a web page with the following using HTML
- To embed a map in a web page
- To fix the hot spots in that map
- Show all the related information when the hot spots are clicked
--- Content provided by FirstRanker.com ---
- Create a page with a link at the top of it that when clicked will jump all the way to the bottom of the page. At the bottom of the page there should be a link to jump back to the top of the page.
- Create a page for our college website.
- Display an image that when clicked will link to itself and will display the image in the browser by itself.
- Display five different images. Skip two lines between each image. Each image should have a title.
- Print a paragraph that is a description of a book, include the title of the book as well as its author. Names and titles should be underlined, adjectives should be italicized and bolded.
--- Content provided by FirstRanker.com ---
b) Create a web page with the following:
- Cascading style sheets
- Embedded style sheets
- Inline style sheets. Use our college information for the web pages
--- Content provided by FirstRanker.com ---
- Create a Navigation bar (with dropdown) with CSS
- Create a CSS3 based Zebra striped table
- Create a Symposium Registration / Feedback Form
- Create a page our college information for the web page using CSS types
- Create a page of How to set the background-attachment property whether a background image is fixed or scrolls with the rest of the page?
--- Content provided by FirstRanker.com ---
c) Create and save an XML document at the server, which contains 10 users Information. Write a Program, which takes user Id as an input and returns the User details by taking the user information from the XML document.
- Create and save an XML document to view an food menu.
- Create a XML Document for the Business Letter
- A business has a telephone directory that records the first and last name, telephone number and email address of everyone working in the firm. Departments are the main organizing unit of the firm so the telephone directory is typically displayed in department order and shows for each department the contact phone and fax number and email address.
- Create an XML document for the student database
- Create an XML schema to describe a museum (use elements of the museum entity defined in the last chapter, and add to it a country element). Specify a set of acceptable values as a country and its calendar with date, opening time, and closing time.
--- Content provided by FirstRanker.com ---
SOCKETS & SERVLETS
a) Write programs in Java using sockets to implement the following:
- HTTP request
- FTP
- SMTP
- POP3
--- Content provided by FirstRanker.com ---
- Write a Java program of creating a simple SMTP (simple mail transfer protocol) client, and a simple echo server for communication.
- Write a Java program of Greeting Client is a client program that connects to a server by using a socket and sends a greeting, and then waits for a response.
- Write a Java program of file transfer from local to remote.
- Write a simple HTTP Server-Client program in Java.
- Write a Java program of how to send an HTTP POST request with a Socket. A socket is an endpoint for communication between two machines. Sending an HTTP POST request using a Socket.
--- Content provided by FirstRanker.com ---
b) Write a program in Java for creating simple chat application with datagram sockets and datagram packets
c) Write programs in Java using Servlets:
- To invoke servlets from HTML forms
- To invoke servlets from Applets
--- Content provided by FirstRanker.com ---
- Write a Java Servlet program of creating a simple counter.
- Write a Java Servlet program of Creating a Login page with parameter passing into the server.
- Write a Java Servlet shows a servlet that uses client pull to display the current time, updated every 10 seconds.
- Write a Java Servlet generates and returns a GIF image. The graphic says "Hello World!"
--- Content provided by FirstRanker.com ---
- Write a Java Servlet uses session tracking to count the number of times a client has accessed it. The servlet also displays all the bindings for the current session, just because it can.
d) Write programs in Java to create three-tier applications using servlets for conducting on-line examination for displaying student mark list. Assume that student information is available in a database which has been stored in a database server.
- To create the Employees table in TEST database for online quiz.
- To create the login database and access it through online link.
- To create the Students database for their mark list.
- To create the Library database.
--- Content provided by FirstRanker.com ---
e) Write a program to lock servlet itself to a particular server IP address and port number. It requires an init parameter key that is appropriate for its servlet IP address and port before it unlocks itself and handles a request.
f) Session tracking using hidden form fields and Session tracking for a hit count
- To create the validation on the login form using Javascript method in JSP page.
- Session Tracking using JSP.
- Session Tracking using Servlet.
- Write a JSP program of designing Scientific Calculator.
- Write a JSP program of displaying cookies information
--- Content provided by FirstRanker.com ---
g) Install TOMCAT web server. Convert the static webpages of programs 1&2 into dynamic web pages using servlets (or JSP) and cookies. Hint: Users information (user id, password, credit card number) would be stored in web.xml. Each user should have a separate Shopping Cart
ADVANCE CONCEPTS:
--- Content provided by FirstRanker.com ---
a) Implement a simple program using following frameworks
- JSP Struts Framework
- Hibernate
- Spring
b) Explore the following application in AJAX: Searching in real time with live searches, Getting the answer with auto complete, Chatting with friends ,Dragging and dropping with Ajax, Getting instant login feedback, Ajax-enabled popup menus, Modifying Web pages on the fly
--- Content provided by FirstRanker.com ---
c) Write a web services for finding what people think by asking 500 people's opinion for any consumer
d) Write a web services for predicting for any product sales
- Write a hello world program of AJAX JQuery.
- Write a calculator program of JSP Struts.
- Create, Publish and Displaying a web service of product sales.
- To display a message through Spring MVC framework.
- Write a Program of Ajax with PHP database and displaying it.
--- Content provided by FirstRanker.com ---
WEBPAGE CONCEPTS
d) Create a web page with the following using HTML
- To embed a map in a web page
- To fix the hot spots in that map
- Show all the related information when the hot spots are clicked
--- Content provided by FirstRanker.com ---
e) Create a web page with the following:
- Cascading style sheets
- Embedded style sheets
- Inline style sheets. Use our college information for the web pages
--- Content provided by FirstRanker.com ---
f) Create and save an XML document at the server, which contains 10 users Information. Write a Program, which takes user Id as an input and returns the User details by taking the user information from the XML document
SOCKETS & SERVLETS
b) Write programs in Java using sockets to implement the following:
- HTTP request
- FTP
- SMTP
- POP3
--- Content provided by FirstRanker.com ---
b) Write a program in Java for creating simple chat application with datagram sockets and datagram packets
d) Write programs in Java using Servlets:
--- Content provided by FirstRanker.com ---
- To invoke servlets from HTML forms
- To invoke servlets from Applets
h) Write programs in Java to create three-tier applications using servlets for conducting on-line examination for displaying student mark list. Assume that student information is available in a database which has been stored in a database server
i) Write a program to lock servlet itself to a particular server IP address and port number. It requires an init parameter key that is appropriate for its servlet IP address and port before it unlocks itself and
handles a request
--- Content provided by FirstRanker.com ---
j) Session tracking using hidden form fields and Session tracking for a hit count
k) Install TOMCAT web server. Convert the static webpages of programs 1&2 into dynamic web pages using servlets (or JSP) and cookies. Hint: Users information (user id, password, credit card number) would be stored in web.xml. Each user should have a separate Shopping Cart
ADVANCE CONCEPTS:
e) Implement a simple program using following frameworks
- JSP Struts Framework
- Hibernate
- Spring
--- Content provided by FirstRanker.com ---
f) Explore the following application in AJAX: Searching in real time with live searches, Getting the answer with auto complete, Chatting with friends ,Dragging and dropping with Ajax, Getting instant login feedback, Ajax-enabled popup menus, Modifying Web pages on the fly
g) Write a web services for finding what people think by asking 500 people's opinion for any consumer
h) Write a web services for predicting for any product sales
--- Content provided by FirstRanker.com ---
COURSE OUTCOMES
- Create webpage to embed an image map, fix the hot spot, show all the information in hot spots in html
- Create a webpage with all type of cascading style sheets
- Create a client side scripts for validating web form controls using DHTML/XML
- Create a java program using protocol (HTTP/SMTP/FTP/POP3)
- Create a java program using applet and implementation in java to invoke servlets from HTML/ Applets
- Implement program in java to create three tier Architecture using JSP and database for Conducting online examination and also displaying student mark list for the student
- Session and Cookies information available in the server which is stored in JSP and Servlet
- Implement program using XML – schema – XSLT/XSL
- Implement a program using AJAX, Spring, Struts and Web services
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
CS6512-INTERNET PROGRAMMING LABORATORY
CONTENTS
Sl.No. | Name of the Experiment | Page No. |
---|---|---|
CYCLE 1 - WEB PAGE CONCEPTS | ||
1. | Image Mapping | 7 |
2. | Style Sheets | 10 |
3. | Web Form Validation of Xml Using Java Script | 14 |
4. | Protocols | |
a) Http Request | 17 | |
b) FTP-File Transfer Protocol | 18 | |
c) SMTP- Simple Mail Transfer Protocol | 20 | |
d) POP3- Post Office Protocol | 21 | |
CYCLE 2 - SOCKETS AND SERVLETS | ||
5. | Chat Application Using UDP | 23 |
6. | Invoking Servlets | |
a) Invoke Servlets From Html | 25 | |
b) Invoke Servlets From Applets | 27 | |
7. | Online Data Base Application Using Servlet | 30 |
8. | Locking Server Itself | 33 |
9. | Session Tracking In Servlets | 36 |
10. | Sessions and Cookies In Servlet | 38 |
CYCLE 3 - ADVANCE CONCEPTS | ||
11. | JSP Struts Framework | 41 |
12. | Spring Framework | 43 |
13. | Ajax Application | 45 |
14. | Airline Reservation System Using Web Services | 47 |
MINI PROJECTS | ||
15. | Design the fields to map the location of College of Engineering Website | |
16. | Design Online Quiz like Moodle Web Site | |
17. | Inventory Management System using JSP with XAMPP | |
18. | Design a Website of displaying contents in a Book using PHP with XAMPP | |
19. | Design and Implement a Library Management System |
Expt. No.: 1 IMAGE MAPPING
- Write the syntax and tags about tables.
- What are the various types of lists?
- Write the description starts with <dd>.
- Write about frames.
- Write the scenario of links.
- Can you list out the linking tags in HTML?
- Define - HTML
- Write the syntax of href?
- Compare HTML and XHTML.
- What is URL?
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
Expt.No.: 2 STYLE SHEETS
- Describe the Syntax about External / Internal Style Sheets.
- Describe the Syntax about Inline Style Sheets.
- What is CSS?
- Define- Style sheet.
- Discuss about embedded style sheets?
- What are the style precedence rules when using multiple approaches?
- List down the ways of including style information in a document.
- Define cascading.
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
Expt. No.: 3 WEB FORM VALIDATION OF XML USING JS
- Describe about Java Scripts
- Write about XML Elements.
--- Content provided by FirstRanker.com ---
- What is XML?
- Differentiate XML From HTML.
- What is DHTML?
- What are the form tags available in html?
- What is the use of submit button?
- What is URN?
- What is URI?
- Differentiate client side scripting from server side scripting.
--- Content provided by FirstRanker.com ---
Expt.No. 4: PROTOCOLS
- What is POP3?
- What are the steps to execute POP3?
- What is FTP?
- What is the difference between GET and POST method?
- What is meant by http protocol?
- How to make the connection with TCP?
- Limitations of HTTP.
- What is HTTP Session?
- What is meant by loop back address?
- What are the issues of next generation IP?
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
Expt.No.5: IMPLEMENTATION OF CHAT APPLICATION - UDP
--- Content provided by FirstRanker.com ---
- What is meant by Socket :
- What are the two basic protocols used for transmitting the message?
- What is meant by UDP?
- What is the major difference between UDP and TCP/IP Protocol?
- What is IP address?
- What is OSI?
- What is router?
- What do you mean by hub?
- What is URL?
- Define packet switched networks.
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
Expt.No.6: INVOKE SERVLETS FROM HTML, APPLET
- What is applet?
- Explain applet life cycle?
- How will you establish the connection between the servlet and an applet?
- Can we pass parameters to an applet using <param? Tag ?
- Compare Client and Server.
- Compare swing and applet?
- Differentiate between Servlet andApplet.
--- Content provided by FirstRanker.com ---
Expt.No.:7 ONLINE DATA BASE APPLICATION USING SERVLET
- What are servlets?
- Explain servlet life cycle methods?
- When doGet() method of servlet to be called?
- When doPost() method of servlet to be called?
- How to make database connection with servlet?
- What is HttpSession?
- What is CGI?
- What are the SQL commands used for database in servlet?
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
- What is tomcat server?
- How sessions and cookies are used in servlet?
Expt.No.8: LOCKING SERVER ITSELF
--- Content provided by FirstRanker.com ---
- How to read name of all filters in servlet?
- What is HTTPServletRequest class?
- What is a servlet?
- What are common tasks performed by servlet container?
- Differentiate servlet config from servletcontext?
- What is URL Encoding?
- When doGet() method of servlet to be called?
- When doPost() method of servlet to be called?
--- Content provided by FirstRanker.com ---
Expt.No.: 9 SESSION TRACKING IN SERVLET
- How to read name of all fileters in servlet?
- What is HTTPServletRequest class?
- What is a servlet?
- What are common tasks performed by servlet container?
- Differentiate servlet config from servletcontext?
- What are the phases of servlet life cycle?
- What is URL Encoding?
- When doGet() method of servlet to be called?
- When doPost() method of servlet to be called?
- What is the need for tracking session?
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
Expt.No.: 10 SESSIONS & COOKIES IN SERVLET
--- Content provided by FirstRanker.com ---
- What are cookies?
- How to create a cookie using servlet?
- How to read a cookie using servlet?
- How do we get the database connection with servlet?
- What are the uses of Servlet?
- What is the use of servlet wrapper class?
- What do you mean byJDBC?
- Define ODBC.
- List down the ways ODBC differ fromJDBC?
- List down the types of drivers available in JDBC.
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
Expt.No.11: JSP STRUTS FRAMEWORK
- What are the main components in struts application?
- Why we use Struts?
- What is strut?
- What are the components of struts?
--- Content provided by FirstRanker.com ---
Expt.No.12 SPRING FRAMEWORK
- What is Spring Framework?
- What are some of the important features and advantages of Spring Framework?
- Name some of the important Spring Modules?
- What is spring?
- What is spring IOC container?
- What are spring beans?
--- Content provided by FirstRanker.com ---
- What bean scopes does spring support?
- What is Spring DAO?
Expt.No. 13: PROGRAM USING AJAX
--- Content provided by FirstRanker.com ---
- What is Ajax?
- What are Ajax applications?
- What are the advantages of Ajax?
- What are the disadvantages of AJAX?
- What is update panel?
- What are the two methods used for cross doman ajax calls?
- What are the difference between ajax and javascript?
- What are the extender controls?
- What is ajax framework?
- What are all the browsers support ajax?
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
Expt.No.14: AIR LINE RESERVATION SYSTEM USING WS
- What is REST?
- What is WSDL?
- What is the SOAP encoding?
- How can one access a class as a web service?
- What are the steps performed by the client to access a web service?
- Can you name some standards used in web services?
- What are distributed technologies?
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
This download link is referred from the post: Anna University B.Tech Lab Manual