Ajp Project

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 18

SHREEYASH PRATISHTHAN’S

SHREEYASH COLLEGE OF ENGINEERING AND


TECHNOLOGY (POLYTECHNIC), CHH. SAMBHAJINAGAR

MICRO-PROJECT REPORT

NAME OF DEPARTMENT: COMPUTER DEPARTMENT


ACADEMIC YEAR:- 2024-25
SEMESTER: 5TH

COURSE NAME: AJP

COURSE CODE: 22517


MICRO-PROJECT TITLE: Event Handling

PREPARED BY:
Abhishek Ramesh Kolape EN. NO : 2210920128
MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION,
MUMBAI
CERTIFICATE

This is to certify that Mr:Abhishek Ramesh Kolape of 5 Semester of Diploma


in COMPUTER ENGINEERING of Institute SHREEYASH COLLEGE OF
ENGINEERING TECHNOLOGY (POLYTECHNIC) has successfully
completed MicroProject Work in Course of AJP for the academic year 2023-24
as prescribed in the I-Scheme Curriculum.

Date : Enrollment No : 2210920128


Place :CHH.Sambhajinager Exam Seat No :

PROF:Y.B.TUPKE PROF: A.C NAIK PROF: S.S KHANDAGAE

Signature Signature Signature


Guide HOD Principal

Seal of Institute
ACKNOWLEDGEMENT
We wish to express our profound gratitude to our guide
Y.B.TUPKE who guided us endlessly in framing and completion of
MicroProject. He guided us on all the main points in that Micro-
Project. We are indebted to his constant encouragement, cooperation
and help. It was his enthusiastic support that helped us in overcoming
of various obstacles in the Micro-Project.
We are also thankful to our Principal S. S. KHANDAGALE & HOD
A. C. NAIL, Faculty Members and classmates for extending their
support and motivation in the completion of this Micro-Project.

Abhishek Ramesh Kolape EN. NO : 2210920128

Annexure-1
Micro-Project Proposal
(Format or Micro-Project Proposal about1-2pages)

Title of Micro-Project:
Event Handling

1.0 Aims/Benefits of the Micro-Project (minimum30-50words)


2.0 In AJP (Apache JServ Protocol), event handling typically refers to managing
interactions between the client, web server (such as Apache HTTP Server), and
the servlet container (like Apache Tomcat). AJP is primarily used for
communication between a front-end web server and a back-end application server,
and while it's not an event-driven protocol in itself, event handling comes into play
in how the web server processes requests and how responses are managed.

3.0 Course Outcomes Addressed


4.0 1. Understanding of Web Server and Application Server Communication (AJP
Protocol)
2. Configuration and Management of AJP Connectors
3. Application of Event Handling in Distributed Systems
4. Error Handling and Troubleshooting
5. Event Logging and Monitoring in Web Servers
6. Performance Optimization and Scalability

5.0 Proposed Methodology (Procedure in brief that will be followed to


do the micro- project) in about 100 to 200 words).
1. Event Identification and Categorization
2. Configuration of AJP Connector (Tomcat & Apache HTTP Server)

3. Implementing Event Handlers in Application Code


4. Error Handling Mechanisms

5. Logging and Monitoring

6. Performance Optimization

Annexure-1
6.0 Action Plan (Sequence and time required for major activity. The following is for Reference, The
Activities can be Added / reduced / Modified )

Name of
Sr.
Details of Planned Planned Responsible
No. Week activity Start date Finish date Team Members
1 1 &2 Discussion & Finalization 16/01/2024 17/01/2024 Abhishek Kolpae
of Topic
2 3 Preparation of the Abstract 17/01/2024 20/01/2024 Abhishek Kolpae
3 4 Literature Review 21/01/2024 23/01/2024 Abhishek Kolpae
4 5 Submission of 25/02/2024 25/01/2024 Abhishek Kolpae
Microproject Proposal
( Annexure-I)
5 6 Collection of information 01/02/2024 04/02/2024 Abhishek Kolpae
about Topic
6 7 Collection of relevant 05/02/2024 08/02/2024 Abhishek Kolpae
content / materials for the
execution of Microproject.
7 8 Discussion and submission 09/02/2024 13/02/2024 Abhishek Kolpae
of outline of the
Microproject.
8 9 Analysis / execution of 15/02/2024 18/02/2024 Abhishek Kolpae
Collected data /
information and
preparation of Prototypes /
drawings / photos / charts /
graphs / tables / circuits /
Models / programs etc.
9 10 Completion of Contents of 01/03/2024 03/03/2024 Abhishek Kolpae
Project Report
10 11 Completion of Weekly 03/03/2024 05/03/2024 Abhishek Kolpae
progress Report
11 12 Completion of Project 05/04/2024 07/04/2024 Abhishek Kolpae
Report ( Annexure-II)
12 13 Viva voce / Delivery of Abhishek Kolpae
Presentation
Micro-Project Report
Format for Micro-Project Report (Minimum 4 pages)

Title of Micro-Project:-
Event Handling
1.0 Rationale (Importance of the project, in about 30 to 50words.This is a modified version of
the earlier one written after the work)
Forests and natural habitats play a vital role in sustaining biodiversity, regulating the climate, and providing
essential ecosystem services. However, they face numerous threats from deforestation, habitat destruction,
and climate change. This project aims to understand the significance of preserving these ecosystems and
propose sustainable solutions for long-term conservation.

2.0 Aims/Benefits of the Micro-Project:- (In about 50 to 150 words)

The primary aim of this micro-project is to emphasize the importance of forests and natural habitats. By
studying the methods of preservation, we seek to identify strategies to prevent deforestation, habitat
destruction, and biodiversity loss. Through afforestation, sustainable forestry practices, community
involvement, and legal frameworks, the project seeks to explore solutions for protecting forests and
wildlife. Ultimately, the benefits include raising awareness, promoting conservation efforts, and proposing
practical steps for sustainable development.

3.0 Course Outcomes Achieved (Add to the earlier list if more Cos are addressed)

a) Understanding the significance of ecosystems and their contributions to environmental balance.


b) Identifying threats to forests and natural habitats such as deforestation, pollution, and climate
change.
c) Exploring sustainable forestry methods, community involvement, and legal frameworks for
conservation.
d) Proposing practical, actionable steps toward the preservation of forests and habitats.

1.0 Literature Review:- ( you can include all the resources which you have used to gather the
information for the Micro-project)

Sample:-

a) "The Environmental Impact of Deforestation" - DCC Technical Publications.


b) "Conservation Practices for Biodiversity" - DCC Tech Knowledge Publications.
c) Government Reports on Forest Conservation Acts and Wildlife Protection Policies.

5.0 Actual Methodology Followed (Write step wise work done, data collected and its analysis (if
any).The contribution of individual member may also be noted.)

1) Write procedure/approach/technique etc. to accomplish project work.


2) Analyze the collected data (if any) generate useful information from it.
3) Write the procedure for data analysis.
4) Contribution of an individual member may also be noted (did what work).
6.0 Outputs of the Micro-Projects
1) Drawing of the prototype, drawings of the survey, presentation of collected
data/findings/observation.
outputs.
2) Generated information visually in form of appropriate drawings/tables/charts/graphs.
3) Draw/design the prototype/model/of the desired equipment/instrument/machine part etc.

7.0 Skill Developed/Learning outcome of this Micro-Project


(It is not necessary that every micro-project should develop all the following skill/abilities/outcomes.
However, some of the abilities mentioned below may be common in many of the micro-projects. Hence,
you have to select appropriately form the following and you can select others also)

1) IDENTIFYING : identifying the problem and course of problem in the area related and prepare
project proposals before starting the project.
2) SERIVE : Derive different possible solutions creatively.
3) DATA COMMUNICATION : Collect relevant data from different sources (books/the internet/the
market/suppliers/experts and other through survey/interviews).
4) DESIGNING : Designing micro project with minimum required resources (low cost).
5) DEVELOPING : Develop the prototype/model/ of the desired equipment/ machine part etc.
6) TEAMWORK : Learn to work in a team and boost individual confidence.
7) TIME MANAGEMENT : Timely completion of micro project as scheduled.
8) DATA ANALYSIS : Interpretation of data, drawing and analysis of laboratory calculations etc.
9) PROBLEM-SOLVING : Develop good problem-solving skills.
10) SAFETY : Incorporate safety features in products.
11) TECHNICAL WRITING : Prepare a report of the proposed plan and final report.
12) PRESENTATION AND COMMUNICATION SKILLS : Giving working model presentation of
the micro project.
13) CONFIDENCE : Confidently, answer the questions asked about the project.
14) ACKNOWLEDGEMTNT : Acknowledge the help rendered by others in the success of the project.

9.0 Applications of this Micro-Project:- (In about 30 to 50 words)


Used in construction of network in local area. To make work easy and resource sharing is possible
very flexible. And the efficient data sharing is possible.
MICRO-PROJECT EVOLUTION SHEET

NAME OF STUDENT : Abhishek Ramesh Kolape EN. NO : 2210920128


NAME OF PROGRAM: COMPUTER ENGINEERING SEMESTER : 5TH

COURSE NAME:AJP COURSE CODE:22517


TITLE OF THE MICRO-PROJECT : Event Handling
COURSE OUTCOMES ACHIEVED:-

a) Understand the importance of forest and habitat


b) Analyze methods of preservation
c) Identify the role of technological interventions
d) Examine the impact of legal frameworks
e) Evaluate the role of community involvement

Sr. Poor Average Good Excellent Sub


No. Characteristic to be (Marks1-3) (Marks4-5) (Marks 6-8) (Marks9-10) Total
assessed
(A) Process and Product Assessment (Convert Below total marks out of 6Marks)

1 Relevance to the course

2 Literature
Review/information
collection
3 Completion of the Target as
Per project proposal
4 Analysis of Data and
representation
5 Quality of Prototype/Model

6 Report Preparation
(B) Individual Presentation/Viva(Convert Below total marks out of 4Marks)
7 Presentation

8 Viva

(A) (B)
Total Marks
Process and Product Individual Presentation/ Viva
10
Assessment (6 marks) (4 marks)

Comments/Suggestions about team work/leadership/inter-personal communication (if any)


Name of Course Teacher: Y.B.TUPKE

Dated Signature:-__________________
 INTRODUCTION
An event can be defined as changing the state of an object or
behavior by performing actions. Actions can be a button click, cursor movement,
keypress through keyboard or page scrolling, etc.
The java.awt.event package can be used to provide various event classes.

Classification of Events
 Foreground Events
 Background Events

Types of Events

1. Foreground Events
Foreground events are the events that require user interaction to generate, i.e.,
foreground events are generated due to interaction by the user on components
in Graphic User Interface (GUI). Interactions are nothing but clicking on a button,
scrolling the scroll bar, cursor moments, etc.

2. Background Events
Events that don’t require interactions of users to generate are known as
background events. Examples of these events are operating system
failures/interrupts, operation completion, etc.
Event Handling
It is a mechanism to control the events and to decide what should happen after
an event occur. To handle the events, Java follows the Delegation Event model.

Delegation Event model


 It has Sources and Listeners.

Delegation Event Model


 Source: Events are generated from the source. There are various sources

like buttons, checkboxes, list, menu-item, choice, scrollbar, text


components, windows, etc., to generate events.
 Listeners: Listeners are used for handling the events generated from the

source. Each of these listeners represents interfaces that are responsible


for handling events.
To perform Event Handling, we need to register the source with the listener.
Registering the Source With Listener
Different Classes provide different registration methods.
Syntax:
addTypeListener()

where Type represents the type of event.


Example 1: For KeyEvent we use addKeyListener() to register.
Example 2:that For ActionEvent we use addActionListener() to register.
Event Classes in Java
Flow of Event Handling
1. User Interaction with a component is required to generate an event.
2. The object of the respective event class is created automatically after event
generation, and it holds all information of the event source.
3. The newly created object is passed to the methods of the registered
listener.
4. The method executes and returns the result.

Code-Approaches
The three approaches for performing event handling are by placing the event
handling code in one of the below-specified places.
1. Within Class
2. Other Class
3. Anonymous Class
Note: Use any IDE or install JDK to run the code, Online compiler may throw
errors due to the unavailability of some packages.
Event Handling Within Class
 Java
// Java program to demonstrate the
// event handling within the class

import java.awt.*;
import java.awt.event.*;

class GFGTop extends Frame implements ActionListener {

TextField textField;

GFGTop()
{
// Component Creation
textField = new TextField();
// setBounds method is used to provide
// position and size of the component
textField.setBounds(60, 50, 180, 25);
Button button = new Button("click Here");
button.setBounds(100, 120, 80, 30);

// Registering component with listener


// this refers to current instance
button.addActionListener(this);

// add Components
add(textField);
add(button);

// set visibility
setVisible(true);
}

// implementing method of actionListener


public void actionPerformed(ActionEvent e)
{
// Setting text to field
textField.setText("GFG!");
}

public static void main(String[] args)


{
new GFGTop();
}
}
Output

After Clicking, the text field value is set to GFG!


Explanation
1. Firstly extend the class with the applet and implement the respective
listener.
2. Create Text-Field and Button components.
3. Registered the button component with respective event. i.e. ActionEvent by
addActionListener().
4. In the end, implement the abstract method.

Event Handling by Other Class


 Java
// Java program to demonstrate the
// event handling by the other class

import java.awt.*;
import java.awt.event.*;

class GFG1 extends Frame {


TextField textField;

GFG2()
{
// Component Creation
textField = new TextField();

// setBounds method is used to provide


// position and size of component
textField.setBounds(60, 50, 180, 25);
Button button = new Button("click Here");
button.setBounds(100, 120, 80, 30);

Other other = new Other(this);

// Registering component with listener


// Passing other class as reference
button.addActionListener(other);

// add Components
add(textField);
add(button);

// set visibility
setVisible(true);
}

public static void main(String[] args)


{
new GFG2();
}
}
 Java
/// import necessary packages
import java.awt.event.*;

// implements the listener interface


class Other implements ActionListener {

GFG2 gfgObj;

Other(GFG1 gfgObj) {
this.gfgObj = gfgObj;
}

public void actionPerformed(ActionEvent e)


{
// setting text from different class
gfgObj.textField.setText("Using Different Classes");
}
}
Output
Event Handling By Anonymous Class
 Java

// Java program to demonstrate the


// event handling by the anonymous class

import java.awt.*;
import java.awt.event.*;

class GFG3 extends Frame {

TextField textField;

GFG3()
{
// Component Creation
textField = new TextField();

// setBounds method is used to provide


// position and size of component
textField.setBounds(60, 50, 180, 25);
Button button = new Button("click Here");
button.setBounds(100, 120, 80, 30);

// Registering component with listener anonymously


button.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e)
{
// Setting text to field
textField.setText("Anonymous");
}
});

// add Components
add(textField);
add(button);

//make size viewable


setSize(300,300);
// set visibility
setVisible(true);
}

public static void main(String[] args)


{
new GFG3();
}
}
Output

You might also like