0% found this document useful (0 votes)
108 views3 pages

Web Programming Assignment Guide

This document contains an assignment for a Web Programming and Services course. It includes 15 questions across 5 units related to topics like the web, JavaScript, XML, J2EE, servlets, JSP, databases, .NET, and ASP.NET. Students are asked to write short responses and programs demonstrating their knowledge of key concepts and technologies for web development. The questions range from defining and explaining terms to providing examples using different APIs and elements.

Uploaded by

Saraah Ghori
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
108 views3 pages

Web Programming Assignment Guide

This document contains an assignment for a Web Programming and Services course. It includes 15 questions across 5 units related to topics like the web, JavaScript, XML, J2EE, servlets, JSP, databases, .NET, and ASP.NET. Students are asked to write short responses and programs demonstrating their knowledge of key concepts and technologies for web development. The questions range from defining and explaining terms to providing examples using different APIs and elements.

Uploaded by

Saraah Ghori
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd

Deccan College of Engineering & Technology

Dar-us- salam Hyderabad – 01


Department of Computer Science & Engineering
B.E ( CSE ) 3/4 – II – Sem 2017-18
SUBJECT: WEB PROGRAMMING AND SERVICES
ASSIGNMENT
Unit - I
1) Write about WWW, Internet, URL, MIME, HTTP? (10)
2) Explain how Arrays and function are used in JavaScript and Write about
Events and
Event handling in Java script with suitable example. (10)
3) Explain XML parsers and Give valid XML document for an arbitrary bookstore
data.
Write the XSL file to display the XML content in a XHTML table. (10)
Unit - II
4) Explain J2EE platform architecture. (10)
5) What is a web container? (10)
6) What is session? Explain different session handling mechanisms. (10)
Unit - III
7) List different types of filters. (10)
8) Explain how to secure Web application with examples (10)
9) Write notes on Java Server Pages and Explain in detail different JSP elements
(10)
Unit - IV
10) Explain different types of statements for database connectivity in JDBC. (10)
11) Explain different types of JDBC drivers and connection pooling (10)
12) Write short notes on Java Mail API (10)
Unit - V
13) Discuss in detail .Net architecture framework and Common Type System
(10)
14) Explain [Link] Framework control and what is generic handler in [Link]?
(10)
15) What is code behind file? Explain different controls in [Link] with
examples. (10)

**************

1) Write about WWW, Internet, URL, MIME, HTTP?  

2) Write in detail about Pattern Matching using Regular Expression available in javascript.

3) Define the following?


 XML Document Structure
 DTD
 XML Schema
Design DTD, Schema and create XML document of Bank.
4) What is a web container?  
5) What is session? Explain different session handling mechanisms.
6) Write a Short note on the following
 Enterprise Architecture Styles
 J2EE Architecture
 Container
 J2EE Technologies
 Directory structure of a WEB APP.

7) Write Short note, including Definition, API(classes and methods), tags used in
deployment descriptor and a program to demonstrate Servlet’s request, response and
exception handling)

8) Write Short note, including Definition, API(classes and methods), tags used in
deployment descriptor and short a program to demonstrate Servlet’s Servlet Session
Tracking with API and Servlet Collaboration.

9) Write Short note including Definition, syntax, and a program to demonstrate


 JSP Directive
 Scripting Elements

10) Write Short note, including Definition, API (classes and methods), tags used in
deployment descriptor and program to demonstrate Filters.

11) Write about JSP Tag Extension process.

12) Write a Short note on the following?


 JAVA MAIL Installation
 JAVA MAIL Configuration
 JAVA MAIL API
 JAVA MAIL Resources

13) Write Short note, including Definition, API (classes and methods), tags used in
deployment descriptor and program to demonstrate JDBC for updating Database.

14) Write Short note on the following?


 .Net Framework
 [Link] document code behind files
 HTML Control life cycle
 Validation Control
 .Net Remoting

15) What is code behind file? Explain different controls in [Link] with examples.
************************

Common questions

Powered by AI

Session handling is vital in web applications for tracking user interactions across multiple requests, maintaining user state, and ensuring security and continuity of user experience. Common session handling methods include cookies, URL rewriting, and hidden form fields, with cookies being the most prevalent. Cookies store session identifiers on the client-side, which are sent to the server with each request to retrieve the appropriate session data. URL rewriting appends the session ID to the URL, while hidden form fields include the ID within form submissions. Each method has unique security and scalability considerations, crucial for robust session management .

JavaScript events and event handling enhance interactivity by responding to user actions such as clicks, keystrokes, or mouse movements. An event in JavaScript is a signal that something has occurred, typically initiated by the user, while event handling refers to executing code in response to these events. For example, a button click event can trigger a JavaScript function that updates part of the web page without reloading it, providing a more dynamic experience. Event listeners can be added to elements to detect when these actions occur and specify the function to execute .

The Java Mail API provides a platform-independent and protocol-independent framework for email operations, enabling Java applications to send, receive, and manage email. Configuration involves setting properties such as the mail server's host, port, and authentication credentials. Developers use the API's classes, including Session, Message, and Transport, to handle email transmission. By creating an instance of a Session object with the necessary properties, developers can compose email messages with Message objects and use Transport classes to send the messages through specified mail protocols (SMTP, IMAP, POP3), effectively integrating email capabilities into applications .

Securing web applications is essential to protect sensitive data, preserve user trust, and prevent unauthorized access to systems. Common strategies include implementing authentication mechanisms, such as login systems and multi-factor authentication, using HTTPS to encrypt data transmission, and employing firewalls to block malicious requests. Additionally, regular security audits, input validation, and sanitization techniques help mitigate risks associated with SQL injection and cross-site scripting (XSS) attacks, thereby enhancing application robustness against potential vulnerabilities .

Filters in web development, particularly in Java servlets, enhance application modularity by intercepting requests and responses to modify or examine them as necessary. They perform functions like logging, authentication, data compression, and input validation. Filters are typically defined in a web application's deployment descriptor and can be applied through the servlet API, allowing systematic processing of Requests and Responses. Exception handling filters can catch and manage errors efficiently, keeping the application robust and user-friendly by directing users to appropriate error pages or messages .

ASP.NET framework control elements, such as server controls, HTML controls, and data controls, facilitate the development of dynamic web applications. Server controls, like TextBox and Button, are server-side objects that provide automatic state management and event-driven programming. A generic handler in ASP.NET is a class that implements the IHttpHandler interface, allowing developers to process web requests more directly than typical page-based handlers. It is ideal for tasks like generating images or handling form submissions asynchronously, offering a streamlined approach for specific applications .

JDBC drivers, responsible for establishing database connectivity in Java applications, include four types: Type 1 (JDBC-ODBC bridge), Type 2 (native-API), Type 3 (network protocol), and Type 4 (thin driver). Type 1 drivers are platform-dependent and offer limited performance. Type 4 drivers, being pure Java, are platform-independent and provide optimal performance. Connection pooling, a technique that reuses database connections, boosts efficiency by reducing the overhead associated with opening and closing connections. It enhances scalability and performance, particularly in web applications experiencing high traffic, by minimizing connection latency and resource consumption .

The J2EE platform architecture supports enterprise-level web applications by providing a multi-tiered framework that enhances modular development, scalability, and component reuse. Its key components include Java Servlets, JavaServer Pages (JSP), and Enterprise JavaBeans (EJB), which facilitate the creation of dynamic web content, develop server-side business logic, and manage transactions. Additionally, the J2EE platform provides APIs for database interaction, messaging services, and web services, thus addressing the diverse requirements of enterprise applications .

XML parsers play a critical role in web programming by interpreting and facilitating the exchange of XML data between programs and systems. They validate the structure and syntax of XML documents, ensuring data integrity. To transform a valid XML document, such as one for arbitrary bookstore data, into an XHTML table, an XSL file is used. XSL defines how to display the data in XML documents and can transform XML into various formats like XHTML. The XSL file specifies the rules for converting XML nodes into HTML elements, enabling the presentation of complex data structures in a human-readable format .

The Common Type System (CTS) in the .NET Framework standardizes data types, enabling cross-language interoperability across different programming languages supported by .NET, such as C#, VB.NET, and F#. CTS ensures type safety, enabling seamless interoperation and integration of objects and services written in different languages. This flexibility allows developers to leverage the vast .NET ecosystem by integrating components from multiple languages in a single application without compatibility issues, fostering tailored and sophisticated application development .

You might also like